diff options
Diffstat (limited to 'lib/libthr/thread/thr_setprio.c')
-rw-r--r-- | lib/libthr/thread/thr_setprio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libthr/thread/thr_setprio.c b/lib/libthr/thread/thr_setprio.c index 51a283e..03ac39c 100644 --- a/lib/libthr/thread/thr_setprio.c +++ b/lib/libthr/thread/thr_setprio.c @@ -50,7 +50,7 @@ _pthread_setprio(pthread_t pthread, int prio) param.sched_priority = prio; if (pthread == curthread) { THR_LOCK(curthread); - ret = sched_setparam((pid_t)curthread->tid, ¶m); + ret = thr_setschedparam(curthread->tid, ¶m, sizeof(param)); if (ret == -1) ret = errno; else @@ -59,7 +59,7 @@ _pthread_setprio(pthread_t pthread, int prio) } else if ((ret = _thr_ref_add(curthread, pthread, /*include dead*/0)) == 0) { THR_THREAD_LOCK(curthread, pthread); - ret = sched_setparam((pid_t)pthread->tid, ¶m); + ret = thr_setschedparam(pthread->tid, ¶m, sizeof(param)); if (ret == -1) ret = errno; else |