From 1d99828acf48bc6d5a81aadc6123e5172dfc355d Mon Sep 17 00:00:00 2001 From: rpj Date: Mon, 9 Jul 2001 18:22:07 +0000 Subject: * 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. --- pthread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pthread.h') diff --git a/pthread.h b/pthread.h index 0122b7c..754efac 100644 --- a/pthread.h +++ b/pthread.h @@ -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); -- cgit v1.2.3