summaryrefslogtreecommitdiff
path: root/pthread.h
diff options
context:
space:
mode:
authorrpj <rpj>2001-07-09 18:22:07 +0000
committerrpj <rpj>2001-07-09 18:22:07 +0000
commit1d99828acf48bc6d5a81aadc6123e5172dfc355d (patch)
tree4646ce8ba7129298e3ca6931c8e7019e9bbeb2df /pthread.h
parentf58aab44e671bb39b8afb29804a9ca94c238c523 (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.h2
1 files changed, 1 insertions, 1 deletions
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);