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

Re: perlthread.pod, take two

Thread Previous | Thread Next
Hans Mulder
November 6, 1999 14:36
Re: perlthread.pod, take two
Message ID:

In article <>, 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.

-- HansM

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About