OSDN Git Service

(split) LDP: Update original to LDP v3.65
[linuxjm/LDP_man-pages.git] / original / man3 / pthread_attr_setschedpolicy.3
index 46e5c2f..f8066aa 100644 (file)
@@ -23,7 +23,7 @@
 .\" the source, must acknowledge the copyright and authors of this work.
 .\" %%%LICENSE_END
 .\"
-.TH PTHREAD_ATTR_SETSCHEDPOLICY 3 2010-02-03 "Linux" "Linux Programmer's Manual"
+.TH PTHREAD_ATTR_SETSCHEDPOLICY 3 2013-06-21 "Linux" "Linux Programmer's Manual"
 .SH NAME
 pthread_attr_setschedpolicy, pthread_attr_getschedpolicy \- set/get
 scheduling policy attribute in thread attributes object
@@ -69,6 +69,17 @@ returns the scheduling policy attribute of the thread attributes object
 .IR attr
 in the buffer pointed to by
 .IR policy .
+
+In order for the policy setting made by
+.BR pthread_attr_setschedpolicy ()
+to have effect when calling
+.BR pthread_create (3),
+the caller must use
+.BR pthread_attr_setinheritsched (3)
+to set the inherit-scheduler attribute of the attributes object
+.I attr
+to
+.BR PTHREAD_EXPLICIT_SCHED .
 .SH RETURN VALUE
 On success, these functions return 0;
 on error, they return a nonzero error number.
@@ -102,3 +113,11 @@ See
 .BR pthread_setschedparam (3),
 .BR pthread_setschedprio (3),
 .BR pthreads (7)
+.SH COLOPHON
+This page is part of release 3.65 of the Linux
+.I man-pages
+project.
+A description of the project,
+and information about reporting bugs,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.