summaryrefslogtreecommitdiff
path: root/linuxthreads/specific.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-09-25 17:11:06 +0000
committerUlrich Drepper <drepper@redhat.com>1999-09-25 17:11:06 +0000
commitd790bc347dce29327b69260b5323d87d4fb7e936 (patch)
tree0af0325ca401d16552f9dbf6bd13f0d73bf57825 /linuxthreads/specific.c
parent079c00e64c9f6aafcd816790d49cb144d00a6a18 (diff)
Update.
* manager.c (__linuxthreads_pthread_threads_max): New variable. * specific.c (__linuxthreads_pthread_keys_max): New variable. 1999-09-23 Ulrich Drepper <drepper@cygnus.com> * specific.c: Move definitions of struct pthread_key_struct and destr_function to ... * internals.h: ...here.
Diffstat (limited to 'linuxthreads/specific.c')
-rw-r--r--linuxthreads/specific.c10
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;