summaryrefslogtreecommitdiffstats
path: root/lib/libthr
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2006-12-05 07:23:58 +0000
committerdavidxu <davidxu@FreeBSD.org>2006-12-05 07:23:58 +0000
commit3f733764261ff79c423255375230362d5766defb (patch)
tree41a4a477f5aa30ee2f71ddf44bc3897e3db96fbe /lib/libthr
parent3c6a8dbb063cfa872313984f529dfb1b51ab27f0 (diff)
downloadFreeBSD-src-3f733764261ff79c423255375230362d5766defb.zip
FreeBSD-src-3f733764261ff79c423255375230362d5766defb.tar.gz
the c_has_waiters is lazily updated, temporarily disable the false
alarm code.
Diffstat (limited to 'lib/libthr')
-rw-r--r--lib/libthr/thread/thr_cond.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libthr/thread/thr_cond.c b/lib/libthr/thread/thr_cond.c
index eb50366..3ea0534 100644
--- a/lib/libthr/thread/thr_cond.c
+++ b/lib/libthr/thread/thr_cond.c
@@ -124,11 +124,13 @@ _pthread_cond_destroy(pthread_cond_t *cond)
else {
cv = *cond;
THR_UMUTEX_LOCK(curthread, &cv->c_lock);
+#if 0
/* Lock the condition variable structure: */
if (cv->c_kerncv.c_has_waiters) {
THR_UMUTEX_UNLOCK(curthread, &cv->c_lock);
return (EBUSY);
}
+#endif
/*
* NULL the caller's pointer now that the condition
* variable has been destroyed:
OpenPOWER on IntegriCloud