pthread_attr_setinheritsched.3: tfix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2013-04-18 11:14:40 +02:00
parent 6d46d0fac1
commit b67b588646
1 changed files with 6 additions and 6 deletions

View File

@ -26,7 +26,7 @@
.TH PTHREAD_ATTR_SETINHERITSCHED 3 2013-04-19 "Linux" "Linux Programmer's Manual"
.SH NAME
pthread_attr_setinheritsched, pthread_attr_getinheritsched \- set/get
inherit scheduler attribute in thread attributes object
inherit-scheduler attribute in thread attributes object
.SH SYNOPSIS
.nf
.B #include <pthread.h>
@ -41,12 +41,12 @@ Compile and link with \fI\-pthread\fP.
.SH DESCRIPTION
The
.BR pthread_attr_setinheritsched ()
function sets the inherit scheduler attribute of the
function sets the inherit-scheduler attribute of the
thread attributes object referred to by
.IR attr
to the value specified in
.IR inheritsched .
The inherit scheduler attribute determines whether a thread created using
The inherit-scheduler attribute determines whether a thread created using
the thread attributes object
.I attr
will inherit its scheduling attributes from the calling thread
@ -80,13 +80,13 @@ take their scheduling attributes from the values specified
by the attributes object.
.\" FIXME what are the defaults for scheduler settings?
.PP
The default setting of the inherit scheduler attribute in
The default setting of the inherit-scheduler attribute in
a newly initialized thread attributes object is
.BR PTHREAD_INHERIT_SCHED .
The
.BR pthread_attr_getinheritsched ()
returns the inherit scheduler attribute of the thread attributes object
returns the inherit-scheduler attribute of the thread attributes object
.IR attr
in the buffer pointed to by
.IR inheritsched .
@ -115,7 +115,7 @@ As at glibc 2.8, if a thread attributes object is initialized using
then the scheduling policy of the attributes object is set to
.BR SCHED_OTHER
and the scheduling priority is set to 0.
However, if the inherit scheduler attribute is then set to
However, if the inherit-scheduler attribute is then set to
.BR PTHREAD_EXPLICIT_SCHED ,
then a thread created using the attribute object
wrongly inherits its scheduling attributes from the creating thread.