More Delay/Semaphore "fun"

Gary Chambers gazzaguru2 at btinternet.com
Mon Oct 8 16:25:40 UTC 2007


Aye. Had a chat with Sig on IRC. Mutexes seem to work fine. Had to add critical:ifError: to Mutex though.
Thanks.

> -----Original Message-----
> From: squeak-dev-bounces at lists.squeakfoundation.org
> [mailto:squeak-dev-bounces at lists.squeakfoundation.org]On Behalf Of Paolo
> Bonzini
> Sent: 08 October 2007 4:45 PM
> To: The general-purpose Squeak developers list
> Subject: Re: More Delay/Semaphore "fun"
> 
> 
> Gary Chambers wrote:
> > Possibly. Have you tested this?
> 
> Not on Monitor; Monitor>>#exit/#enter are used elsewhere, and as I said 
> the code is messy enough that you'd better be sure that Monitor-using 
> processes is never terminated.
> 
> > For the moment, to allow us to move on, we've switched to 
> Semaphores and avaoided nesting.
> 
> You could instead use Mutex, since I now found out that 
> Mutex>>#critical: is basically the code I posted.
> 
> Paolo
> 




More information about the Squeak-dev mailing list