diff options
Diffstat (limited to 'private.c')
-rw-r--r-- | private.c | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -9,6 +9,8 @@ #include "pthread.h" #include "implement.h" +#include <sys/timeb.h> + /* * Code contributed by John E. Bossom <JEB>. */ @@ -49,6 +51,11 @@ _pthread_processInitialize (void) _pthread_processTerminate (); } + /* + * Set up the global mutex test and init check lock. + */ + InitializeCriticalSection(&_pthread_mutex_test_init_lock); + return (_pthread_processInitialized); } /* processInitialize */ @@ -99,6 +106,11 @@ _pthread_processTerminate (void) _pthread_cleanupKey = NULL; } + /* + * Destroy up the global mutex test and init check lock. + */ + DeleteCriticalSection(&_pthread_mutex_test_init_lock); + _pthread_processInitialized = FALSE; } @@ -483,7 +495,7 @@ _pthread_sem_timedwait (sem_t * sem, const struct timespec * abstime) if (abstime == NULL) { - msecs = INFINITE; + milliseconds = INFINITE; } else { |