X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=original%2Fman3%2Fpthread_setschedparam.3;fp=original%2Fman3%2Fpthread_setschedparam.3;h=f57d98cba2e4f16f33150b15480e5caf2da3576b;hb=c22bb444e1a8f4a0e08a82e80ea4ad06593869da;hp=5df0ae8451ef3edb9a63115c64763c1454c50f44;hpb=7c9ad412ec885d21d9cce05ac0343a32a87fd367;p=linuxjm%2FLDP_man-pages.git diff --git a/original/man3/pthread_setschedparam.3 b/original/man3/pthread_setschedparam.3 index 5df0ae84..f57d98cb 100644 --- a/original/man3/pthread_setschedparam.3 +++ b/original/man3/pthread_setschedparam.3 @@ -23,7 +23,7 @@ .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" -.TH PTHREAD_SETSCHEDPARAM 3 2008-11-17 "Linux" "Linux Programmer's Manual" +.TH PTHREAD_SETSCHEDPARAM 3 2014-05-19 "Linux" "Linux Programmer's Manual" .SH NAME pthread_setschedparam, pthread_getschedparam \- set/get scheduling policy and parameters of a thread @@ -50,7 +50,7 @@ specifies the new scheduling policy for The supported values for .IR policy , and their semantics, are described in -.BR sched_setscheduler (2). +.BR sched (7). .\" FIXME . pthread_setschedparam() places no restriction on the policy, .\" but pthread_attr_setschedpolicy() restricts policy to RR/FIFO/OTHER .\" http://sourceware.org/bugzilla/show_bug.cgi?id=7013 @@ -72,7 +72,7 @@ struct sched_param { As can be seen, only one scheduling parameter is supported. For details of the permitted ranges for scheduling priorities in each scheduling policy, see -.BR sched_setscheduler (2). +.BR sched (7). The .BR pthread_getschedparam () @@ -138,6 +138,13 @@ to an unsupported value") error for .BR pthread_setschedparam (). .\" .SH VERSIONS .\" Available since glibc 2.0 +.SH ATTRIBUTES +.SS Multithreading (see pthreads(7)) +The +.BR pthread_setschedparam () +and +.BR pthread_getschedparam () +functions are thread-safe. .SH CONFORMING TO POSIX.1-2001. .SH NOTES @@ -145,7 +152,7 @@ For a description of the permissions required to, and the effect of, changing a thread's scheduling policy and priority, and details of the permitted ranges for priorities in each scheduling policy, see -.BR sched_setscheduler (2). +.BR sched (7). .SH EXAMPLE The program below demonstrates the use of .BR pthread_setschedparam () @@ -433,7 +440,6 @@ main(int argc, char *argv[]) .nh .BR getrlimit (2), .BR sched_get_priority_min (2), -.BR sched_setscheduler (2), .BR pthread_attr_init (3), .BR pthread_attr_setinheritsched (3), .BR pthread_attr_setschedparam (3), @@ -441,12 +447,14 @@ main(int argc, char *argv[]) .BR pthread_create (3), .BR pthread_self (3), .BR pthread_setschedprio (3), -.BR pthreads (7) +.BR pthreads (7), +.BR sched (7) .SH COLOPHON -This page is part of release 3.65 of the Linux +This page is part of release 3.67 of the Linux .I man-pages project. A description of the project, -and information about reporting bugs, +information about reporting bugs, +and the latest version of this page, can be found at \%http://www.kernel.org/doc/man\-pages/.