summaryrefslogtreecommitdiff
path: root/implement.h
diff options
context:
space:
mode:
authorrpj <rpj>2001-07-10 08:38:43 +0000
committerrpj <rpj>2001-07-10 08:38:43 +0000
commit5865dd7b74b0b23eb178249bfd5a000cc929f147 (patch)
tree348b5d16177ee0adcd9cfd00c948384facfe4965 /implement.h
parent1d99828acf48bc6d5a81aadc6123e5172dfc355d (diff)
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.
Diffstat (limited to 'implement.h')
-rw-r--r--implement.h3
1 files changed, 1 insertions, 2 deletions
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];
};