summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_mutexattr.c
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2006-04-27 08:18:23 +0000
committerdavidxu <davidxu@FreeBSD.org>2006-04-27 08:18:23 +0000
commit66d0fee031ed44d54ee9e1a183fbe75c37a6e158 (patch)
treedaa71c55e66d8720e95d00de6f5673a23b90bfa8 /lib/libthr/thread/thr_mutexattr.c
parente4cefd49df59b5e0ac6b8c1791cf554240bae189 (diff)
downloadFreeBSD-src-66d0fee031ed44d54ee9e1a183fbe75c37a6e158.zip
FreeBSD-src-66d0fee031ed44d54ee9e1a183fbe75c37a6e158.tar.gz
- Use same priority range returned by kernel's sched_get_priority_min()
and sched_get_priority_max() syscalls. - Remove unused fields from structure pthread_attr.
Diffstat (limited to 'lib/libthr/thread/thr_mutexattr.c')
-rw-r--r--lib/libthr/thread/thr_mutexattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_mutexattr.c b/lib/libthr/thread/thr_mutexattr.c
index c77d946..7244c58 100644
--- a/lib/libthr/thread/thr_mutexattr.c
+++ b/lib/libthr/thread/thr_mutexattr.c
@@ -225,7 +225,7 @@ _pthread_mutexattr_setprotocol(pthread_mutexattr_t *mattr, int protocol)
ret = EINVAL;
else {
(*mattr)->m_protocol = protocol;
- (*mattr)->m_ceiling = THR_MAX_PRIORITY;
+ (*mattr)->m_ceiling = THR_MAX_RR_PRIORITY;
}
return(ret);
}
OpenPOWER on IntegriCloud