From 5865dd7b74b0b23eb178249bfd5a000cc929f147 Mon Sep 17 00:00:00 2001 From: rpj Date: Tue, 10 Jul 2001 08:38:43 +0000 Subject: Untested revamp of barrier.c. * barrier.c: Still more revamping. The exclusive access mutex isn't really needed so it has been removed and replaced by an InterlockedDecrement(). nSerial has been removed. iStep is now dual-purpose. The process shared attribute is now stored in the barrier struct. * implement.h (pthread_barrier_t_): Lost some/gained one elements. * private.c (ptw32_threadStart): Removed some comments. --- implement.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'implement.h') diff --git a/implement.h b/implement.h index bc72b3f..080d9a1 100644 --- a/implement.h +++ b/implement.h @@ -189,9 +189,8 @@ struct pthread_spinlock_t_ { struct pthread_barrier_t_ { unsigned int nCurrentBarrierHeight; unsigned int nInitialBarrierHeight; - unsigned int nSerial; int iStep; - pthread_mutex_t mtxExclusiveAccess; + int pshared; sem_t semBarrierBreeched[2]; }; -- cgit v1.2.3