summaryrefslogtreecommitdiff
path: root/pthread.h
diff options
context:
space:
mode:
authorbje <bje>1998-07-17 14:19:27 +0000
committerbje <bje>1998-07-17 14:19:27 +0000
commitbac0be47a6821c2e9fde1e051a1a529153b44175 (patch)
tree76d0ec816690fbfaeea398f7ca95baeacdbbfdcd /pthread.h
parente6f40585685101e9679e9e535e790805a8d38c47 (diff)
1998-07-18 Ben Elliston <bje@cygnus.com>
* 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!
Diffstat (limited to 'pthread.h')
-rw-r--r--pthread.h4
1 files 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;