diff options
| author | David Xu <davidxu@FreeBSD.org> | 2005-04-04 23:43:53 +0000 |
|---|---|---|
| committer | David Xu <davidxu@FreeBSD.org> | 2005-04-04 23:43:53 +0000 |
| commit | 619f4fce790c37b38e414f46bda1dda464470c0d (patch) | |
| tree | 621ac10f4ea742b82146d3022bb918ed0445dcb4 /lib/libthr/thread/thr_barrier.c | |
| parent | 47accd603c8f9f52d378442708a4db5290c29672 (diff) | |
Notes
Diffstat (limited to 'lib/libthr/thread/thr_barrier.c')
| -rw-r--r-- | lib/libthr/thread/thr_barrier.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_barrier.c b/lib/libthr/thread/thr_barrier.c index afb6a40623d2..113fce0cde83 100644 --- a/lib/libthr/thread/thr_barrier.c +++ b/lib/libthr/thread/thr_barrier.c @@ -91,7 +91,7 @@ _pthread_barrier_wait(pthread_barrier_t *barrier) /* Current thread is lastest thread */ bar->b_waiters = 0; bar->b_cycle++; - _thr_umtx_wake(&bar->b_cycle, bar->b_count); + _thr_umtx_wake(&bar->b_cycle, bar->b_count - 1); THR_UMTX_UNLOCK(curthread, &bar->b_lock); ret = PTHREAD_BARRIER_SERIAL_THREAD; } else { |
