summaryrefslogtreecommitdiff
path: root/ptw32_processTerminate.c
diff options
context:
space:
mode:
Diffstat (limited to 'ptw32_processTerminate.c')
-rw-r--r--ptw32_processTerminate.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ptw32_processTerminate.c b/ptw32_processTerminate.c
index bd1ee7a..f80b99b 100644
--- a/ptw32_processTerminate.c
+++ b/ptw32_processTerminate.c
@@ -101,8 +101,7 @@ ptw32_processTerminate (void)
/*
* Destroy the global locks and other objects.
*/
- (void) pthread_cond_destroy(&ptw32_once_control.cond);
- (void) pthread_mutex_destroy(&ptw32_once_control.mtx);
+ DeleteCriticalSection (&ptw32_once_event_lock);
DeleteCriticalSection (&ptw32_spinlock_test_init_lock);
DeleteCriticalSection (&ptw32_rwlock_test_init_lock);
DeleteCriticalSection (&ptw32_cond_test_init_lock);