diff options
author | bje <bje> | 1998-10-04 21:04:28 +0000 |
---|---|---|
committer | bje <bje> | 1998-10-04 21:04:28 +0000 |
commit | d0aed2a7bfdad688de32a7c4d894590502e6bac4 (patch) | |
tree | f101dc214318f924a902a1e81986c6206415cc1a /pthread.h | |
parent | 11b839f08794de0d090811580a09aa6db5b21f2c (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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 { |