summaryrefslogtreecommitdiff
path: root/global.c
diff options
context:
space:
mode:
authorrpj <rpj>2002-02-18 03:16:52 +0000
committerrpj <rpj>2002-02-18 03:16:52 +0000
commita416ab17ecf9f2cb0f1e3f7bd645a8d1ce690ca2 (patch)
tree72f776cd64e48824a5578ff7a523bc69097143b4 /global.c
parente6f1797e9e9925ae7f9dda54806ef8f52ae3ed07 (diff)
Major reorganisation of source code; new routine and tests added.
Diffstat (limited to 'global.c')
-rw-r--r--global.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/global.c b/global.c
index 33a29fe..d541aa4 100644
--- a/global.c
+++ b/global.c
@@ -42,6 +42,8 @@
int ptw32_processInitialized = FALSE;
pthread_key_t ptw32_selfThreadKey = NULL;
pthread_key_t ptw32_cleanupKey = NULL;
+pthread_cond_t ptw32_cond_list_head = NULL;
+pthread_cond_t ptw32_cond_list_tail = NULL;
int ptw32_concurrency = 0;
@@ -77,6 +79,13 @@ CRITICAL_SECTION ptw32_rwlock_test_init_lock;
*/
CRITICAL_SECTION ptw32_spinlock_test_init_lock;
+/*
+ * Global lock for condition variable linked list. The list exists
+ * to wake up CVs when a WM_TIMECHANGE message arrives. See
+ * w32_TimeChangeHandler.c.
+ */
+CRITICAL_SECTION ptw32_cond_list_lock;
+
#ifdef _UWIN
/*
* Keep a count of the number of threads.