nil in SuspendedDelays???

Andreas Raab andreas.raab at gmx.de
Tue Jan 24 03:54:19 UTC 2006


Cees De Groot wrote:
> Should this be adopted?

The VW fix does seem overly complex for Squeak - the main issue is that 
in Semaphore>>critical: we can be interrupted between the following two 
lines:

   self wait.
   [blockValue := mutuallyExcludedBlock value] ensure:[self signal].

Simply moving #wait inside the ensure'd block will cure the problem (for 
very, very specific and nitpicky reasons that I'm not going to explain 
in detail unless someone actually wants to know ;-)

Cheers,
   - Andreas



More information about the Squeak-dev mailing list