From 30a1e9738593302fa26e0a668f517bc7f5800190 Mon Sep 17 00:00:00 2001 From: rpj Date: Sun, 13 Jan 2002 02:29:40 +0000 Subject: * attr.c (pthread_attr_setscope): Fix struct pointer indirection error introduced 2002-01-04. (pthread_attr_getscope): Likewise. * pthread.dsp (SOURCE): Add missing source files. ./tests/: * exception3.c (main): Shorten wait time. * mutex7.c: New test. * mutex7n.c: New test. * mutex7e.c: New test. * mutex7r.c: New test. * mutex6.c: Modified to avoid leaving the locked mutex around on exit. --- attr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'attr.c') diff --git a/attr.c b/attr.c index 21c3ddb..5a76403 100644 --- a/attr.c +++ b/attr.c @@ -518,7 +518,7 @@ pthread_attr_setscope(pthread_attr_t *attr, int contentionscope) #ifdef _POSIX_THREAD_PRIORITY_SCHEDULING switch (contentionscope) { case PTHREAD_SCOPE_SYSTEM: - attr->contentionscope = contentionscope; + (*attr)->contentionscope = contentionscope; return 0; case PTHREAD_SCOPE_PROCESS: return ENOTSUP; @@ -535,7 +535,7 @@ int pthread_attr_getscope(const pthread_attr_t *attr, int *contentionscope) { #ifdef _POSIX_THREAD_PRIORITY_SCHEDULING - *contentionscope = attr->contentionscope; + *contentionscope = (*attr)->contentionscope; return 0; #else return ENOSYS; -- cgit v1.2.3