mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-24 17:51:17 +03:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user