More Delay/Semaphore "fun"

Paolo Bonzini bonzini at gnu.org
Wed Oct 10 07:02:37 UTC 2007


> Actually, this is worthwhile to think about. We already have some unwind 
> protection primitives and it seems quite all right to me to have another 
> "marker primitive" that could be evaluated upon termination. As a matter 
> of fact, we might redefine #ifCurtailed: to take an optional argument 
> which gets to see the suspendingList (or the entire process). Something 
> along the lines of:
> 
>   [self wait] ifCurtailed:[:list|
>     list == self ifTrue:[caught := false].
>   ].

This is not very different from the idea of a ProcessBeingTerminated 
notification.

Paolo



More information about the Squeak-dev mailing list