]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Move checking for c_has_waiters into low level _thr_ucond_signal and
authordavidxu <davidxu@FreeBSD.org>
Tue, 12 Dec 2006 03:08:49 +0000 (03:08 +0000)
committerdavidxu <davidxu@FreeBSD.org>
Tue, 12 Dec 2006 03:08:49 +0000 (03:08 +0000)
commitfcda4340a4ca0dc2c34e3a1408e25a156a6bcd9e
treec2212f261bb0a72bc508e079a5b950a83c8f8989
parent114b7df825529c758df31aa3a412dc9d38456faf
Move checking for c_has_waiters into low level _thr_ucond_signal and
_thr_ucond_broadcast, clear condition variable pointer in cancellation
info after returing from _thr_ucond_wait, since kernel has already
dropped the internal lock, so we don't need to unlock it in cancellation
handler again.
lib/libthr/thread/thr_cond.c
lib/libthr/thread/thr_umtx.c