diff options
| author | David Xu <davidxu@FreeBSD.org> | 2006-07-13 06:35:43 +0000 |
|---|---|---|
| committer | David Xu <davidxu@FreeBSD.org> | 2006-07-13 06:35:43 +0000 |
| commit | 561a89f9457194c9d92d6783eb091b1a9736dae3 (patch) | |
| tree | a578a4c69968927b0ae5c15efa30827ff9d1c6ef /lib/libthr/thread/thr_setprio.c | |
| parent | ba493ceb6bf95551b85cada1be47b5121b6bf0bc (diff) | |
Notes
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 51a283e18b3e..03ac39c27367 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 |
