From: Ulrich Drepper Date: Thu, 23 Sep 1999 18:05:41 +0000 (+0000) Subject: Add struct pthread_key_struct and destr_function definitions. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3c15dbd97f00895d510ad5560f74f1b5ac87290;p=thirdparty%2Fglibc.git Add struct pthread_key_struct and destr_function definitions. --- 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 } }