summaryrefslogtreecommitdiff
path: root/private.c
diff options
context:
space:
mode:
authorrpj <rpj>2001-07-06 18:16:50 +0000
committerrpj <rpj>2001-07-06 18:16:50 +0000
commit06974b302eaf8f08382e6e786aea53f420c12222 (patch)
tree1b574a41dacc634a105a74127b2dac30a60bda13 /private.c
parent7a3104dc65b469cbb9c88b6a9c7b7bea4126a43e (diff)
Spinlocks and barriers fixed and working. Beta level.
* spin.c: Revamped and working; included static initialiser. * barrier.c: Likewise. * condvar.c: Macro constant change; inline auto init routine. * mutex.c: Likewise. * rwlock.c: Likewise. * private.c: Add support for spinlock initialiser. * global.c: Likewise. * implement.h: Likewise. * pthread.h (PTHREAD_SPINLOCK_INITIALIZER): Fix typo. tests/ChangeLog: * spin3.c: Changed test and fixed. * spin4.c: Fixed. * barrier3.c: Fixed. * barrier4.c: Fixed.
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);