summaryrefslogtreecommitdiff
path: root/global.c
diff options
context:
space:
mode:
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.