diff options
author | 2010-11-07 13:29:21 +0000 | |
---|---|---|
committer | 2010-11-07 13:29:21 +0000 | |
commit | 372e44f40178587a228dc01a8230fe2993bb26a3 (patch) | |
tree | ec2a2decf60187fa0a7fd42a62d3cff2259483f6 /lib/libpthread/man/pthread_schedparam.3 | |
parent | regen (diff) | |
download | wireguard-openbsd-372e44f40178587a228dc01a8230fe2993bb26a3.tar.xz wireguard-openbsd-372e44f40178587a228dc01a8230fe2993bb26a3.zip |
Add sched_get_priority_{min,max}. tested in a bulk by landry@.
input and ok from phessler@ and guenther@
Diffstat (limited to 'lib/libpthread/man/pthread_schedparam.3')
-rw-r--r-- | lib/libpthread/man/pthread_schedparam.3 | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/lib/libpthread/man/pthread_schedparam.3 b/lib/libpthread/man/pthread_schedparam.3 index f145b7e7c6e..1aa49349d4a 100644 --- a/lib/libpthread/man/pthread_schedparam.3 +++ b/lib/libpthread/man/pthread_schedparam.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_schedparam.3,v 1.2 2007/05/31 19:19:37 jmc Exp $ +.\" $OpenBSD: pthread_schedparam.3,v 1.3 2010/11/07 13:29:21 fgsch Exp $ .\" Copyright (C) 2000 Jason Evans <jasone@freebsd.org>. .\" All rights reserved. .\" @@ -27,7 +27,7 @@ .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" .\" $FreeBSD: src/lib/libc_r/man/pthread_schedparam.3,v 1.4 2001/07/15 07:53:27 dd Exp $ -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: November 7 2010 $ .Dt PTHREAD_SCHEDPARAM 3 .Os .Sh NAME @@ -53,10 +53,11 @@ The scheduling policy for a thread can either be (round-robin). The thread priority (accessed via .Va param->sched_priority ) -must be at least -.Dv PTHREAD_MIN_PRIORITY -and no more than -.Dv PTHREAD_MAX_PRIORITY . +must be within the range returned by the +.Fn sched_get_priority_min +and +.Fn sched_get_priority_max +functions. .Sh RETURN VALUES If successful, these functions return 0. Otherwise, an error number is returned to indicate the error. @@ -81,6 +82,9 @@ will fail if: Non-existent thread .Va thread . .El +.Sh SEE ALSO +.Xr sched_get_priority_max 3 , +.Xr sched_get_priority_min 3 .Sh STANDARDS .Fn pthread_setschedparam and |