From d0aed2a7bfdad688de32a7c4d894590502e6bac4 Mon Sep 17 00:00:00 2001 From: bje Date: Sun, 4 Oct 1998 21:04:28 +0000 Subject: 1998-10-05 Ben Elliston * 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. --- pthread.h | 1 + 1 file changed, 1 insertion(+) (limited to 'pthread.h') 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 { -- cgit v1.2.3