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. --- mutex.c | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'mutex.c') diff --git a/mutex.c b/mutex.c index da8737a..7633f91 100644 --- a/mutex.c +++ b/mutex.c @@ -8,35 +8,6 @@ #include "pthread.h" #include "implement.h" -static int -insert_attr(pthread_mutexattr_t *attr) -{ - /* Add this attribute object to a list. */ - - /* FIXME: implement using some dynamic scheme. */ - return 0; -} - -static int -is_attr(pthread_mutexattr_t *attr) -{ - /* Return 0 if present, 1 otherwise. */ - - /* FIXME: implement. For now, pretend the attribute is always okay, unless - it is NULL. */ - - return (attr == NULL) ? 1 : 0; -} - -static int -remove_attr(pthread_mutexattr_t *attr) -{ - /* Remove this attribute object from the list. */ - - /* FIXME: implement. */ - return 0; -} - int pthread_mutex_init(pthread_mutex_t *mutex, pthread_mutex_attr_t *attr) { -- cgit v1.2.3