Module Name: src
Committed By: jruoho
Date: Wed Jul 7 16:07:10 UTC 2010
Modified Files:
src/lib/libpthread: pthread_schedparam.3
Log Message:
Xref pthread_attr_getschedparam(3) and sched(3). Use a list for clarity.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libpthread/pthread_schedparam.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libpthread/pthread_schedparam.3
diff -u src/lib/libpthread/pthread_schedparam.3:1.5 src/lib/libpthread/pthread_schedparam.3:1.6
--- src/lib/libpthread/pthread_schedparam.3:1.5 Sun May 4 19:43:05 2008
+++ src/lib/libpthread/pthread_schedparam.3 Wed Jul 7 16:07:10 2010
@@ -1,4 +1,4 @@
-.\" $NetBSD: pthread_schedparam.3,v 1.5 2008/05/04 19:43:05 martin Exp $
+.\" $NetBSD: pthread_schedparam.3,v 1.6 2010/07/07 16:07:10 jruoho Exp $
.\"
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -50,7 +50,7 @@
.\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.\" $FreeBSD: src/lib/libpthread/man/pthread_schedparam.3,v 1.7 2002/09/16 19:29:29 mini Exp $
-.Dd January 30, 2003
+.Dd July 7, 2010
.Dt PTHREAD_SCHEDPARAM 3
.Os
.Sh NAME
@@ -71,14 +71,16 @@
and
.Fn pthread_getschedparam
functions set and get the scheduling parameters of individual threads.
-The scheduling policy for a thread can either be
-.Dv SCHED_FIFO
-(first in, first out),
-.Dv SCHED_RR
-(round-robin),
-or
-.Dv SCHED_OTHER
-(system default).
+The scheduling policy for a thread can be:
+.Bl -tag -width SCHED_OTHER -offset indent
+.It Dv SCHED_FIFO
+First in, first out.
+.It Dv SCHED_RR
+Round-robin.
+.It Dv SCHED_OTHER
+The system default.
+.El
+.Pp
The thread priority (accessed via
.Va param-\*[Gt]sched_priority )
must be at least
@@ -110,6 +112,9 @@
Non-existent thread
.Va thread .
.El
+.Sh SEE ALSO
+.Xr pthread_attr_getschedparam 3 ,
+.Xr sched 3
.Sh STANDARDS
.Fn pthread_setschedparam
and