summaryrefslogtreecommitdiff
path: root/global.c
diff options
context:
space:
mode:
authorrpj <rpj>2003-08-14 08:53:17 +0000
committerrpj <rpj>2003-08-14 08:53:17 +0000
commita50745ec922a917513029f3f87bf820827b43f29 (patch)
tree1e221862e0550d163baef12d17634430ae677824 /global.c
parent414f4bd7e70d94025576d9264c86da63c506f6ca (diff)
Reuse of thread IDs, improved thread ID validation, new tests, bug fixes.
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.
*/