diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2003-04-22 20:28:33 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2003-04-22 20:28:33 +0000 |
| commit | 6dee371a559db5d6bce5e827e6addf9b52bd4a0e (patch) | |
| tree | 19f3d1be5afa27ed30120ee055e1c276564167d9 /lib/libpthread/thread/thr_cond.c | |
| parent | 897ecacd6488f80e815b6be7188c145335a5bcba (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_cond.c')
| -rw-r--r-- | lib/libpthread/thread/thr_cond.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_cond.c b/lib/libpthread/thread/thr_cond.c index c6bffeb74228a..537c264956a5b 100644 --- a/lib/libpthread/thread/thr_cond.c +++ b/lib/libpthread/thread/thr_cond.c @@ -373,6 +373,8 @@ _pthread_cond_timedwait(pthread_cond_t * cond, pthread_mutex_t * mutex, int unlock_mutex = 1; int seqno; + THR_ASSERT(curthread->locklevel == 0, + "cv_timedwait: locklevel is not zero!"); _thr_enter_cancellation_point(curthread); if (abstime == NULL || abstime->tv_sec < 0 || abstime->tv_nsec < 0 || @@ -575,6 +577,8 @@ _pthread_cond_signal(pthread_cond_t * cond) struct pthread *pthread; int rval = 0; + THR_ASSERT(curthread->locklevel == 0, + "cv_timedwait: locklevel is not zero!"); if (cond == NULL) rval = EINVAL; /* @@ -632,6 +636,8 @@ _pthread_cond_broadcast(pthread_cond_t * cond) struct pthread *pthread; int rval = 0; + THR_ASSERT(curthread->locklevel == 0, + "cv_timedwait: locklevel is not zero!"); if (cond == NULL) rval = EINVAL; /* |
