OSDN Git Service

(split) LDP: Update original to LDP v3.52.
[linuxjm/LDP_man-pages.git] / original / man3 / pthread_attr_setinheritsched.3
index 7479e00..5a0c9ac 100644 (file)
 .\" the source, must acknowledge the copyright and authors of this work.
 .\" %%%LICENSE_END
 .\"
-.TH PTHREAD_ATTR_SETINHERITSCHED 3 2012-03-15 "Linux" "Linux Programmer's Manual"
+.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,18 +41,27 @@ 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
 or whether it will take them from
 .IR attr .
 
+The following scheduling attributes are affected by the
+inherit-scheduler attribute:
+scheduling policy
+.RB ( pthread_attr_setschedpolicy (3)),
+scheduling priority
+.RB ( pthread_attr_setschedparam (3)),
+and contention scope
+.RB ( pthread_attr_setscope (3)).
+
 The following values may be specified in
 .IR inheritsched :
 .TP
@@ -71,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 .
@@ -106,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.
@@ -126,6 +135,7 @@ See
 .BR pthread_attr_init (3),
 .BR pthread_attr_setschedparam (3),
 .BR pthread_attr_setschedpolicy (3),
+.BR pthread_attr_setscope (3),
 .BR pthread_create (3),
 .BR pthread_setschedparam (3),
 .BR pthread_setschedprio (3),