summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_getschedparam.c
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2000-10-13 22:12:32 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2000-10-13 22:12:32 +0000
commitfbeb36e4bf72161883eda56a41578de1d8f2f885 (patch)
tree06c51ea3d094e4b4c0492667aa46cf83d9e938c6 /lib/libpthread/thread/thr_getschedparam.c
parenta95b77ec78e646b4b781d4b498bc3be7ddaee44c (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_getschedparam.c')
-rw-r--r--lib/libpthread/thread/thr_getschedparam.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_getschedparam.c b/lib/libpthread/thread/thr_getschedparam.c
index 09d8c1bc3283..5dbd1f0e83fb 100644
--- a/lib/libpthread/thread/thr_getschedparam.c
+++ b/lib/libpthread/thread/thr_getschedparam.c
@@ -49,7 +49,8 @@ pthread_getschedparam(pthread_t pthread, int *policy,
/* Find the thread in the list of active threads: */
else if ((ret = _find_thread(pthread)) == 0) {
/* Return the threads base priority and scheduling policy: */
- param->sched_priority = pthread->base_priority;
+ param->sched_priority =
+ PTHREAD_BASE_PRIORITY(pthread->base_priority);
*policy = pthread->attr.sched_policy;
}