diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2000-10-13 22:12:32 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2000-10-13 22:12:32 +0000 |
| commit | fbeb36e4bf72161883eda56a41578de1d8f2f885 (patch) | |
| tree | 06c51ea3d094e4b4c0492667aa46cf83d9e938c6 /lib/libpthread/thread/thr_setschedparam.c | |
| parent | a95b77ec78e646b4b781d4b498bc3be7ddaee44c (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_setschedparam.c')
| -rw-r--r-- | lib/libpthread/thread/thr_setschedparam.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_setschedparam.c b/lib/libpthread/thread/thr_setschedparam.c index bce965fe6603..9a44ad7a1426 100644 --- a/lib/libpthread/thread/thr_setschedparam.c +++ b/lib/libpthread/thread/thr_setschedparam.c @@ -59,7 +59,8 @@ pthread_setschedparam(pthread_t pthread, int policy, */ _thread_kern_sig_defer(); - if (param->sched_priority != pthread->base_priority) { + if (param->sched_priority != + PTHREAD_BASE_PRIORITY(pthread->base_priority)) { /* * Remove the thread from its current priority * queue before any adjustments are made to its @@ -72,6 +73,8 @@ pthread_setschedparam(pthread_t pthread, int policy, } /* Set the thread base priority: */ + pthread->base_priority &= + (PTHREAD_SIGNAL_PRIORITY | PTHREAD_RT_PRIORITY); pthread->base_priority = param->sched_priority; /* Recalculate the active priority: */ |
