From f3c15dbd97f00895d510ad5560f74f1b5ac87290 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 23 Sep 1999 18:05:41 +0000 Subject: [PATCH] Add struct pthread_key_struct and destr_function definitions. --- linuxthreads/internals.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/linuxthreads/internals.h b/linuxthreads/internals.h index 9be61b078c7..55e79eba6bc 100644 --- a/linuxthreads/internals.h +++ b/linuxthreads/internals.h @@ -63,6 +63,13 @@ struct pthread_start_args { ((PTHREAD_KEYS_MAX + PTHREAD_KEY_2NDLEVEL_SIZE - 1) \ / PTHREAD_KEY_2NDLEVEL_SIZE) +typedef void (*destr_function)(void *); + +struct pthread_key_struct { + int in_use; /* already allocated? */ + destr_function destr; /* destruction routine */ +}; + #define PTHREAD_START_ARGS_INITIALIZER { NULL, NULL, {{0, }}, 0, { 0 } } -- 2.47.3