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. --- pthread.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pthread.h') diff --git a/pthread.h b/pthread.h index 16e514d..0122b7c 100644 --- a/pthread.h +++ b/pthread.h @@ -457,8 +457,7 @@ struct pthread_once_t_ #define PTHREAD_RWLOCK_INITIALIZER ((pthread_rwlock_t) -1) -#define PTHREAD_SPINLOCK_INITIALIZER {1} - +#define PTHREAD_SPINLOCK_INITIALIZER ((pthread_spinlock_t) -1) enum { -- cgit v1.2.3