Sept. 22, 2014
7:50 a.m.
On 22.09.2014, at 09:47, Max Leske <maxleske@gmail.com> wrote:
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?
Sorry, youâre right. I should have thoroughly read Eliotâs e-mail first :)
[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