From 3a431b77efe0d2db5ed44e4739e1dc537ff6cb3e Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 14 Aug 1998 20:41:47 +0000 Subject: [PATCH] pthread_create attr argument should be passed by value per POSIX standard. Was working as is only because pthread_attr_t is normally a struct. However, on some systems it may be a integer. --- libraries/liblthread/thread.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/liblthread/thread.c b/libraries/liblthread/thread.c index 8faf872dc6..ada0e435a4 100644 --- a/libraries/liblthread/thread.c +++ b/libraries/liblthread/thread.c @@ -42,7 +42,7 @@ pthread_attr_setdetachstate( pthread_attr_t *attr, int detachstate ) int pthread_create( pthread_t *tid, - pthread_attr_t attr, + pthread_attr_t *attr, VFP func, void *arg ) @@ -194,7 +194,7 @@ pthread_attr_setdetachstate( pthread_attr_t *attr, int detachstate ) int pthread_create( pthread_t *tid, - pthread_attr_t attr, + pthread_attr_t *attr, VFP func, void *arg ) @@ -361,12 +361,12 @@ pthread_attr_setdetachstate( pthread_attr_t *attr, int detachstate ) int pthread_create( pthread_t *tid, - pthread_attr_t attr, + pthread_attr_t *attr, VFP func, void *arg ) { - return( thr_create( NULL, 0, func, arg, attr, tid ) ); + return( thr_create( NULL, 0, func, arg, *attr, tid ) ); } #endif /* ! sunos56 */ @@ -543,7 +543,7 @@ pthread_attr_setdetachstate( pthread_attr_t *attr, int detachstate ) int pthread_create( pthread_t *tid, - pthread_attr_t attr, + pthread_attr_t *attr, VFP func, void *arg ) -- 2.39.5