Sept. 22, 2014
7:47 a.m.
Thanks for the pointer. On 18.09.2014, at 22:52, Bob Westergaard <bwestergaard@gmail.com> wrote:
Why not use #waitTimeoutMsecs:? Something like:
greenLight := Semaphore new. process := [started := true. [Semaphore new wait] ensure:
I think that should be â[greenLight wait]â, shouldnât it?
[terminator := Processor activeProcess. unwound := true]. greenLight signal] forkAt: Processor activeProcess priority -1.
expired := greenLight waitTimeoutMSecs: 1000. "or whatever suits you" deny: expired. assert: process isTerminated. " and so on"
-- Bob