summaryrefslogtreecommitdiff
path: root/global.c
diff options
context:
space:
mode:
Diffstat (limited to 'global.c')
-rw-r--r--global.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/global.c b/global.c
index d541aa4..7a4dc5c 100644
--- a/global.c
+++ b/global.c
@@ -40,6 +40,7 @@
int ptw32_processInitialized = FALSE;
+pthread_t ptw32_threadReuseTop = PTW32_THREAD_REUSE_BOTTOM;
pthread_key_t ptw32_selfThreadKey = NULL;
pthread_key_t ptw32_cleanupKey = NULL;
pthread_cond_t ptw32_cond_list_head = NULL;
@@ -56,6 +57,11 @@ PTW32_INTERLOCKED_LONG
PTW32_INTERLOCKED_LONG) = NULL;
/*
+ * Global lock for managing pthread_t struct reuse.
+ */
+CRITICAL_SECTION ptw32_thread_reuse_lock;
+
+/*
* Global lock for testing internal state of PTHREAD_MUTEX_INITIALIZER
* created mutexes.
*/