cvs commit: src/sys/vm vm_zeroidle.c
davidxu at freebsd.org
Sat Nov 6 00:18:20 PST 2004
David Schultz wrote:
>On Sat, Nov 06, 2004, David Xu wrote:
>>It is legal to call cv_signal() without a locked mutex.
>Not according to the manpage or the comments in the code.
>What you say is true about pthreads, but pthreads is broken
>in this respect.
I don't think it is broken, calling cv_signal with mutex locked
just introduce ping-pong problem.
More information about the cvs-src