[Cuis-dev] FW: FW: Freezing UI - can't interrupt via Alt+.
Juan Vuletich
JuanVuletich at zoho.com
Sat Jul 9 12:57:20 PDT 2022
Hi Jaromir,
You are right, and your code is safer.
But I don't think this problem grants adding a class variable to
SystemDictionary. I just pushed an update that calls
#valueUnpreemptively instead.
Thanks,
On 7/9/2022 8:17 AM, Jaromir Matas via Cuis-dev wrote:
>
> Hi Juan,
>
> I’ve stumbled upon this irregularity:
>
> If you run this in the Workspace…
>
> [Smalltalk installLowSpaceWatcher] fork.
>
> [Smalltalk installLowSpaceWatcher] fork
>
> … the system ends up with two processes running the #lowSpaceWatcher
> method; the root cause is #installLowSpaceWatcher runs unprotected
> against multiple concurrent invocations.
>
> I’d suggest running the # installLowSpaceWatcher’s code as the
> Semaphore >> #critical section: see attached changeset with a more
> detailed description in the method comment. Please feel free to modify
> in any way :)
>
> Thanks for your opinion,
>
> Jaromir
>
> --
>
> *Jaromír Matas*
>
> mail at jaromir.net
>
>
--
Juan Vuletich
www.cuis-smalltalk.org
https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev
https://github.com/jvuletich
https://www.linkedin.com/in/juan-vuletich-75611b3
https://independent.academia.edu/JuanVuletich
https://www.researchgate.net/profile/Juan-Vuletich
https://patents.justia.com/inventor/juan-manuel-vuletich
https://twitter.com/JuanVuletich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20220709/069f2df1/attachment.htm>
More information about the Cuis-dev
mailing list