mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-19 07:00:08 +00:00
Move struct pthread_key_struct and destr_function to internals.h.
This commit is contained in:
parent
f3c15dbd97
commit
7939e51494
@ -20,15 +20,8 @@
|
|||||||
#include "pthread.h"
|
#include "pthread.h"
|
||||||
#include "internals.h"
|
#include "internals.h"
|
||||||
|
|
||||||
typedef void (*destr_function)(void *);
|
|
||||||
|
|
||||||
/* Table of keys. */
|
/* 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] =
|
static struct pthread_key_struct pthread_keys[PTHREAD_KEYS_MAX] =
|
||||||
{ { 0, NULL } };
|
{ { 0, NULL } };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user