summaryrefslogtreecommitdiff
path: root/pthread.h
diff options
context:
space:
mode:
authorbje <bje>1998-10-04 21:04:28 +0000
committerbje <bje>1998-10-04 21:04:28 +0000
commitd0aed2a7bfdad688de32a7c4d894590502e6bac4 (patch)
treef101dc214318f924a902a1e81986c6206415cc1a /pthread.h
parent11b839f08794de0d090811580a09aa6db5b21f2c (diff)
1998-10-05 Ben Elliston <bje@cygnus.com>
* misc.c (pthread_once): Use the POSIX mutex primitives, not Win32. Remove irrelevant FIXME comment. * pthread.h (PTHREAD_ONCE_INIT): Define. * tests/once1.c: New file; test for pthread_once(). Passes.
Diffstat (limited to 'pthread.h')
-rw-r--r--pthread.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pthread.h b/pthread.h
index e9278c2..b678c68 100644
--- a/pthread.h
+++ b/pthread.h
@@ -75,6 +75,7 @@ struct timespec {
#define PTHREAD_CANCELED ((void *) 1)
#define PTHREAD_MUTEX_INITIALIZER {0 /* ignore internals */ }
+#define PTHREAD_ONCE_INIT { 0, PTHREAD_MUTEX_INITIALIZER }
typedef struct _pthread * pthread_t;
typedef struct {