From 06974b302eaf8f08382e6e786aea53f420c12222 Mon Sep 17 00:00:00 2001 From: rpj Date: Fri, 6 Jul 2001 18:16:50 +0000 Subject: 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. --- global.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'global.c') diff --git a/global.c b/global.c index 9291949..92ea8da 100644 --- a/global.c +++ b/global.c @@ -52,6 +52,12 @@ CRITICAL_SECTION ptw32_cond_test_init_lock; */ CRITICAL_SECTION ptw32_rwlock_test_init_lock; +/* + * Global lock for testing internal state of PTHREAD_SPINLOCK_INITIALIZER + * created spin locks. + */ +CRITICAL_SECTION ptw32_spinlock_test_init_lock; + #ifdef _UWIN /* * Keep a count of the number of threads. -- cgit v1.2.3