]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add struct pthread_key_struct and destr_function definitions.
authorUlrich Drepper <drepper@redhat.com>
Thu, 23 Sep 1999 18:05:41 +0000 (18:05 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 23 Sep 1999 18:05:41 +0000 (18:05 +0000)
linuxthreads/internals.h

index 9be61b078c7673e913ac63e03e2965788e1ad1a8..55e79eba6bc371c5dc49e6d79cd04e49ac671eb7 100644 (file)
@@ -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 } }