diff options
author | rpj <rpj> | 2003-08-14 08:53:17 +0000 |
---|---|---|
committer | rpj <rpj> | 2003-08-14 08:53:17 +0000 |
commit | a50745ec922a917513029f3f87bf820827b43f29 (patch) | |
tree | 1e221862e0550d163baef12d17634430ae677824 /global.c | |
parent | 414f4bd7e70d94025576d9264c86da63c506f6ca (diff) |
Reuse of thread IDs, improved thread ID validation, new tests, bug fixes.
Diffstat (limited to 'global.c')
-rw-r--r-- | global.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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. */ |