diff options
Diffstat (limited to 'linuxthreads/specific.c')
-rw-r--r-- | linuxthreads/specific.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/linuxthreads/specific.c b/linuxthreads/specific.c index 1dafecc2e8..83ea283ba5 100644 --- a/linuxthreads/specific.c +++ b/linuxthreads/specific.c @@ -20,18 +20,14 @@ #include "pthread.h" #include "internals.h" -typedef void (*destr_function)(void *); - /* Table of keys. */ -struct pthread_key_struct { - int in_use; /* already allocated? */ - destr_function destr; /* destruction routine */ -}; - static struct pthread_key_struct pthread_keys[PTHREAD_KEYS_MAX] = { { 0, NULL } }; +/* For debugging purposes put the maximum number of keys in a variable. */ +const int __linuxthreads_pthread_keys_max = PTHREAD_KEYS_MAX; + /* Mutex to protect access to pthread_keys */ static pthread_mutex_t pthread_keys_mutex = PTHREAD_MUTEX_INITIALIZER; |