diff options
author | David Xu <davidxu@FreeBSD.org> | 2006-12-05 23:46:11 +0000 |
---|---|---|
committer | David Xu <davidxu@FreeBSD.org> | 2006-12-05 23:46:11 +0000 |
commit | a8a343d2e609ed41b59e73f668830a79108107ff (patch) | |
tree | e469a73dafa8a807311114aa746f581e980617a8 | |
parent | 3f61998e1c3833a04d7da1ac7b58e469dfd68a7c (diff) |
Notes
-rw-r--r-- | lib/libthr/thread/thr_barrier.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libthr/thread/thr_barrier.c b/lib/libthr/thread/thr_barrier.c index cafba69dbc25..bbd444708dee 100644 --- a/lib/libthr/thread/thr_barrier.c +++ b/lib/libthr/thread/thr_barrier.c @@ -103,6 +103,7 @@ _pthread_barrier_wait(pthread_barrier_t *barrier) cycle = bar->b_cycle; do { _thr_ucond_wait(&bar->b_cv, &bar->b_lock, NULL, 0); + THR_UMUTEX_LOCK(curthread, &bar->b_lock); /* test cycle to avoid bogus wakeup */ } while (cycle == bar->b_cycle); THR_UMUTEX_UNLOCK(curthread, &bar->b_lock); |