develooper Front page | perl.perl5.porters | Postings from November 1999

Re: perlthread.pod, take two

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
November 9, 1999 12:04
Subject:
Re: perlthread.pod, take two
Message ID:
3.0.6.32.19991109150630.00bc98c0@tuatha.sidhe.org
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 drunk

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About