diff options
author | davidxu <davidxu@FreeBSD.org> | 2006-09-21 04:21:30 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2006-09-21 04:21:30 +0000 |
commit | d2c57b7fad5ce91e8b900f315b41d142831b90f1 (patch) | |
tree | f7b8debfd8a0b2054c46d867116922ddcfad5995 /lib/libthr/thread/thr_setschedparam.c | |
parent | 92bd1e76b1d6d685331ec54d7b5703a34d37f84e (diff) | |
download | FreeBSD-src-d2c57b7fad5ce91e8b900f315b41d142831b90f1.zip FreeBSD-src-d2c57b7fad5ce91e8b900f315b41d142831b90f1.tar.gz |
use rtprio_thread system call to get or set thread priority.
Diffstat (limited to 'lib/libthr/thread/thr_setschedparam.c')
-rw-r--r-- | lib/libthr/thread/thr_setschedparam.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libthr/thread/thr_setschedparam.c b/lib/libthr/thread/thr_setschedparam.c index 5ed6a49..59d62dc 100644 --- a/lib/libthr/thread/thr_setschedparam.c +++ b/lib/libthr/thread/thr_setschedparam.c @@ -62,8 +62,7 @@ _pthread_setschedparam(pthread_t pthread, int policy, THR_UNLOCK(curthread); return (0); } - ret = thr_setscheduler(curthread->tid, policy, param, - sizeof(struct sched_param)); + ret = _thr_setscheduler(curthread->tid, policy, param); if (ret == -1) ret = errno; else { @@ -81,8 +80,7 @@ _pthread_setschedparam(pthread_t pthread, int policy, THR_THREAD_UNLOCK(curthread, pthread); return (0); } - ret = thr_setscheduler(pthread->tid, policy, param, - sizeof(struct sched_param)); + ret = _thr_setscheduler(pthread->tid, policy, param); if (ret == -1) ret = errno; else { |