summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_setschedparam.c
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>1999-12-28 18:13:04 +0000
committerDaniel Eischen <deischen@FreeBSD.org>1999-12-28 18:13:04 +0000
commit1752e66d49ea5d9653b0cec4df9949774de0b806 (patch)
treecfe4b336992c8189f28dd9dd04ab184768a47b5e /lib/libpthread/thread/thr_setschedparam.c
parent69186ed701cbfc740d08df24d46b8d184b6f57eb (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_setschedparam.c')
-rw-r--r--lib/libpthread/thread/thr_setschedparam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_setschedparam.c b/lib/libpthread/thread/thr_setschedparam.c
index 57e24e856421..f080d5ddba57 100644
--- a/lib/libpthread/thread/thr_setschedparam.c
+++ b/lib/libpthread/thread/thr_setschedparam.c
@@ -63,9 +63,9 @@ pthread_setschedparam(pthread_t pthread, int policy,
* queue before any adjustments are made to its
* active priority:
*/
+ old_prio = pthread->active_priority;
if ((pthread->flags & PTHREAD_FLAGS_IN_PRIOQ) != 0) {
in_readyq = 1;
- old_prio = pthread->active_priority;
PTHREAD_PRIOQ_REMOVE(pthread);
}