List Info

Thread: Make Delay safe to Process>>#terminate




Make Delay safe to Process>>#terminate
country flaguser name
Switzerland
2007-10-08 01:26:36
Process>>#terminate is quite a dangerous method, since
it may leave 
shared data structures partially updated.  Of course, in
general the 
programmer is simply using the rope it's been given to hang
itself.  But 
in the case of system data structures such as the delay
queue, we'd 
better make sure they're updated atomically.  To do so, this
patch moves 
all handling of the delay queue into the same process that
handles 
timing signals.  Again, something similar has been done in
Squeak 
recently by Andreas Raab, though the actual code is
different.

Paolo

_______________________________________________
help-smalltalk mailing list
help-smalltalkgnu.org

http://lists.gnu.org/mailman/listinfo/help-smalltalk

  
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )