At 11:35 PM 11/6/99 +0100, Hans Mulder wrote: >Hello, > >In article <3.0.6.32.19991029132524.00c1c830@tuatha.sidhe.org>, you wrote: > >>for example, >> >> { >> lock $foo; >> cond_wait $foo unless $foo; >> } > >Shouldn't this, in general be > > { > lock $foo; > cond_wait $foo until $foo; > } > >? > >We can assume that $foo is true when it is signalled, but that >does not necessarily mean it is still true when the receiving >thread reacquires the lock. Good point. I'll change that. Dan ----------------------------------------"it's like this"------------------- Dan Sugalski even samurai dan@sidhe.org have teddy bears and even teddy bears get drunkThread Previous | Thread Next