summaryrefslogtreecommitdiff
path: root/global.c
diff options
context:
space:
mode:
Diffstat (limited to 'global.c')
-rw-r--r--global.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/global.c b/global.c
index 9ce662f..ee6de82 100644
--- a/global.c
+++ b/global.c
@@ -60,5 +60,8 @@ pthread_mutex_t _pthread_threads_mutex_table[_PTHREAD_MAX_THREADS];
/* Global TSD key array. */
_pthread_tsd_key_t _pthread_tsd_key_table[_POSIX_THREAD_KEYS_MAX];
+/* Mutex lock for TSD operations */
+pthread_mutex_t _pthread_tsd_mutex = PTHREAD_MUTEX_INITIALIZER;
+
/* Index to the next available TSD key. */
int _pthread_tsd_key_next = 0;