Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Nov 2004 16:18:13 +0800
From:      David Xu <davidxu@freebsd.org>
To:        David Schultz <das@freebsd.org>
Cc:        cvs-all@freebsd.org
Subject:   Re: cvs commit: src/sys/vm vm_zeroidle.c
Message-ID:  <418C88C5.9010803@freebsd.org>
In-Reply-To: <20041106081147.GA1419@VARK.MIT.EDU>
References:  <200410311932.i9VJWvmo058193@repoman.freebsd.org> <20041101045331.GP16728@cs.rice.edu> <20041101105113.GS24892@elvis.mu.org> <200411011441.33067.jhb@FreeBSD.org> <20041106062955.GA1986@VARK.MIT.EDU> <418C844E.3030403@freebsd.org> <20041106081147.GA1419@VARK.MIT.EDU>

next in thread | previous in thread | raw e-mail | index | archive | help
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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?418C88C5.9010803>