diff options
Diffstat (limited to 'osdep/win32/include/pthread.h')
-rw-r--r-- | osdep/win32/include/pthread.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/osdep/win32/include/pthread.h b/osdep/win32/include/pthread.h index 2e9436d80b..7b82eb2651 100644 --- a/osdep/win32/include/pthread.h +++ b/osdep/win32/include/pthread.h @@ -25,11 +25,12 @@ int pthread_once(pthread_once_t *once_control, void (*init_routine)(void)); typedef struct { - volatile LONG requires_init; + char static_mutex; + INIT_ONCE static_init; CRITICAL_SECTION cs; } pthread_mutex_t; -#define PTHREAD_MUTEX_INITIALIZER {1} +#define PTHREAD_MUTEX_INITIALIZER {1, INIT_ONCE_STATIC_INIT} #define pthread_mutexattr_t int #define pthread_mutexattr_destroy(attr) (void)0 |