diff options
author | 2002-01-19 23:42:40 +0000 | |
---|---|---|
committer | 2002-01-19 23:42:40 +0000 | |
commit | 684268045a3e776b15da52c1806111438f0a8001 (patch) | |
tree | 6e100b5b653cf321a98bfdd3ae5fc6711ab5788a /lib/libpthread/uthread/uthread_getschedparam.c | |
parent | From Patrik Lindergren (patrik@ipunplugged.com): (diff) | |
download | wireguard-openbsd-684268045a3e776b15da52c1806111438f0a8001.tar.xz wireguard-openbsd-684268045a3e776b15da52c1806111438f0a8001.zip |
From FreeBSD: correct priority handling.
Diffstat (limited to 'lib/libpthread/uthread/uthread_getschedparam.c')
-rw-r--r-- | lib/libpthread/uthread/uthread_getschedparam.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libpthread/uthread/uthread_getschedparam.c b/lib/libpthread/uthread/uthread_getschedparam.c index 3bfadd1709f..a7f1bf030c6 100644 --- a/lib/libpthread/uthread/uthread_getschedparam.c +++ b/lib/libpthread/uthread/uthread_getschedparam.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthread_getschedparam.c,v 1.2 1999/11/25 07:01:36 d Exp $ */ +/* $OpenBSD: uthread_getschedparam.c,v 1.3 2002/01/19 23:42:40 fgsch Exp $ */ /* * Copyright (c) 1998 Daniel Eischen <eischen@vigrid.com>. * All rights reserved. @@ -49,7 +49,8 @@ pthread_getschedparam(pthread_t pthread, int *policy, struct sched_param *param) /* 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; } |