From ac165ba9bfdfd92f62c65ab0449852eff7bd4d91 Mon Sep 17 00:00:00 2001 From: bje Date: Wed, 22 Jul 1998 09:22:58 +0000 Subject: i1998-07-22 Ben Elliston * attr.c (pthread_setstacksize): Update test of attr argument. (pthread_getstacksize): Likewise. (pthread_setstackaddr): Likewise. (pthread_getstackaddr): Likewise. (pthread_attr_init): No need to allocate any storage. (pthread_attr_destroy): No need to free any storage. * mutex.c (is_attr): Not likely to be needed; remove. (remove_attr): Likewise. (insert_attr): Likewise. * pthread.h (pthread_attr_t): Moved here from implement.h. * implement.h (_pthread_mutexattr_t): Moved to a public definition in pthread.h. There was little gain in hiding these details. (_pthread_condattr_t): Likewise. --- pthread.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pthread.h') diff --git a/pthread.h b/pthread.h index 82b1a93..a3bd854 100644 --- a/pthread.h +++ b/pthread.h @@ -26,6 +26,10 @@ typedef HANDLE pthread_t; typedef CRITICAL_SECTION pthread_mutex_t; typedef DWORD pthread_key_t; +typedef struct { + size_t stacksize; +} pthread_attr_t; + typedef struct { enum { SIGNAL, BROADCAST, NUM_EVENTS }; -- cgit v1.2.3