summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_cond.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libthr/thread/thr_cond.c')
-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