diff options
author | rpj <rpj> | 2001-07-09 18:22:07 +0000 |
---|---|---|
committer | rpj <rpj> | 2001-07-09 18:22:07 +0000 |
commit | 1d99828acf48bc6d5a81aadc6123e5172dfc355d (patch) | |
tree | 4646ce8ba7129298e3ca6931c8e7019e9bbeb2df /pthread.h | |
parent | f58aab44e671bb39b8afb29804a9ca94c238c523 (diff) |
* barrier.c: Revamped to fix the race condition. Two alternating
semaphores are used instead of the PulseEvent. Also improved
overall throughput by returning PTHREAD_BARRIER_SERIAL_THREAD
to the first waking thread.
* implement.h (pthread_barrier_t_): Revamped.
Diffstat (limited to 'pthread.h')
-rw-r--r-- | pthread.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -825,7 +825,7 @@ int pthread_spin_unlock (pthread_spinlock_t * lock); */ int pthread_barrier_init (pthread_barrier_t * barrier, const pthread_barrierattr_t * attr, - int count); + unsigned int count); int pthread_barrier_destroy (pthread_barrier_t * barrier); |