OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man3 / pthread_setschedprio.3
index 39cd2bd..8ab1e5f 100644 (file)
 .\" the source, must acknowledge the copyright and authors of this work.
 .\" %%%LICENSE_END
 .\"
-.TH PTHREAD_SETSCHEDPRIO 3 2008-11-06 "Linux" "Linux Programmer's Manual"
+.TH PTHREAD_SETSCHEDPRIO 3 2014-05-28 "Linux" "Linux Programmer's Manual"
 .SH NAME
 pthread_setschedprio \- set scheduling priority of a thread
 .SH SYNOPSIS
 .nf
 .B #include <pthread.h>
 
-.BI "pthread_setschedprio(pthread_t " thread ", int " prio );
+.BI "int pthread_setschedprio(pthread_t " thread ", int " prio );
 .sp
 Compile and link with \fI\-pthread\fP.
 .fi
@@ -80,6 +80,11 @@ to an unsupported value") error for
 .BR pthread_setschedparam (3).
 .SH VERSIONS
 This function is available in glibc since version 2.3.4.
+.SH ATTRIBUTES
+.SS Multithreading (see pthreads(7))
+The
+.BR pthread_setschedprio ()
+function is thread-safe.
 .SH CONFORMING TO
 POSIX.1-2001.
 .SH NOTES
@@ -87,13 +92,12 @@ For a description of the permissions required to, and the effect of,
 changing a thread's scheduling priority,
 and details of the permitted ranges for priorities
 in each scheduling policy, see
-.BR sched_setscheduler (2).
+.BR sched (7).
 .SH SEE ALSO
 .ad l
 .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),
@@ -101,12 +105,14 @@ in each scheduling policy, see
 .BR pthread_create (3),
 .BR pthread_self (3),
 .BR pthread_setschedparam (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.79 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/.