From bac0be47a6821c2e9fde1e051a1a529153b44175 Mon Sep 17 00:00:00 2001 From: bje Date: Fri, 17 Jul 1998 14:19:27 +0000 Subject: 1998-07-18 Ben Elliston * pthread.h (pthread_cond_t): Fix for u_int. Do not assume that the mutex contained withing the pthread_cond_t structure will be a critical section. Use our new POSIX type! --- pthread.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pthread.h b/pthread.h index 3f7e3c6..b41e3c7 100644 --- a/pthread.h +++ b/pthread.h @@ -32,10 +32,10 @@ typedef struct { HANDLE events[NUM_EVENTS]; /* Count of the number of waiters. */ - u_int waiters_count; + unsigned waiters_count; /* Serialize access to waiters_count_. */ - CRITICAL_SECTION waiters_count_lock; + pthread_mutex_t waiters_count_lock; } pthread_cond_t; typedef struct { void * ptr; } pthread_condattr_t; -- cgit v1.2.3