summaryrefslogtreecommitdiff
path: root/global.c
diff options
context:
space:
mode:
Diffstat (limited to 'global.c')
-rw-r--r--global.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/global.c b/global.c
index 3bd3b4e..e3af52d 100644
--- a/global.c
+++ b/global.c
@@ -69,3 +69,15 @@ pthread_mutex_t _pthread_tsd_mutex = PTHREAD_MUTEX_INITIALIZER;
/* Index to the next available TSD key. */
int _pthread_tsd_key_next = 0;
+
+/* An array of pthread_key_t */
+pthread_key_t _pthread_key_virgins[_PTHREAD_MAX_KEYS];
+
+/* Index to the next available previously unused pthread_key_t */
+int _pthread_key_virgin_next;
+
+/* An array of pthread_key_t */
+pthread_key_t _pthread_key_reuse[_PTHREAD_MAX_KEYS];
+
+/* Index to the first available reusable pthread_key_t. */
+int _pthread_key_reuse_top;