summaryrefslogtreecommitdiff
path: root/global.c
diff options
context:
space:
mode:
authorrpj <rpj>2005-03-12 23:00:53 +0000
committerrpj <rpj>2005-03-12 23:00:53 +0000
commit47d030b0ab9adf502451ef1558eeca50e67063c0 (patch)
tree2754c946c36b276241e44208ad6d7f5c6cd45bce /global.c
parent4ec6a9e7044d8c853d1cd734facb21316f850106 (diff)
New design for pthread_once (with cancelability); ABI change
Diffstat (limited to 'global.c')
-rw-r--r--global.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/global.c b/global.c
index 18e8fa3..59cb56f 100644
--- a/global.c
+++ b/global.c
@@ -108,15 +108,9 @@ CRITICAL_SECTION ptw32_spinlock_test_init_lock;
CRITICAL_SECTION ptw32_cond_list_lock;
/*
- * Global condition variable and mutex for once_control management.
- * The mutex must be an ERRORCHECK type because we need to
- * guarantee ownership when unlocking.
+ * Global lock to serialise once_control event management.
*/
-ptw32_once_control_t ptw32_once_control =
- {
- PTHREAD_COND_INITIALIZER,
- PTHREAD_ERRORCHECK_MUTEX_INITIALIZER
- };
+CRITICAL_SECTION ptw32_once_event_lock;
#ifdef _UWIN
/*