summaryrefslogtreecommitdiff
path: root/private.c
diff options
context:
space:
mode:
Diffstat (limited to 'private.c')
-rw-r--r--private.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/private.c b/private.c
index ede6b14..cd01fe5 100644
--- a/private.c
+++ b/private.c
@@ -77,6 +77,7 @@ _pthread_processInitialize (void)
*/
InitializeCriticalSection(&_pthread_mutex_test_init_lock);
InitializeCriticalSection(&_pthread_cond_test_init_lock);
+ InitializeCriticalSection(&_pthread_rwlock_test_init_lock);
return (_pthread_processInitialized);
@@ -131,8 +132,9 @@ _pthread_processTerminate (void)
/*
* Destroy the global test and init check locks.
*/
- DeleteCriticalSection(&_pthread_mutex_test_init_lock);
+ DeleteCriticalSection(&_pthread_rwlock_test_init_lock);
DeleteCriticalSection(&_pthread_cond_test_init_lock);
+ DeleteCriticalSection(&_pthread_mutex_test_init_lock);
_pthread_processInitialized = FALSE;
}