summaryrefslogtreecommitdiff
path: root/private.c
diff options
context:
space:
mode:
Diffstat (limited to 'private.c')
-rw-r--r--private.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/private.c b/private.c
index a9953c9..4bc1e38 100644
--- a/private.c
+++ b/private.c
@@ -88,6 +88,7 @@ ptw32_processInitialize (void)
InitializeCriticalSection(&ptw32_mutex_test_init_lock);
InitializeCriticalSection(&ptw32_cond_test_init_lock);
InitializeCriticalSection(&ptw32_rwlock_test_init_lock);
+ InitializeCriticalSection(&ptw32_spinlock_test_init_lock);
return (ptw32_processInitialized);
@@ -142,6 +143,7 @@ ptw32_processTerminate (void)
/*
* Destroy the global test and init check locks.
*/
+ DeleteCriticalSection(&ptw32_spinlock_test_init_lock);
DeleteCriticalSection(&ptw32_rwlock_test_init_lock);
DeleteCriticalSection(&ptw32_cond_test_init_lock);
DeleteCriticalSection(&ptw32_mutex_test_init_lock);