]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/pthread_setschedprio.3
err.3: EXAMPLES: use EXIT_FAILURE rather than 1 as exit status
[thirdparty/man-pages.git] / man3 / pthread_setschedprio.3
index 334c4566b1cc6e400ac6218ae23fc9a06ed736ae..c037d9659252a829a0f71090e25f31826ae7bf4f 100644 (file)
 .\" the source, must acknowledge the copyright and authors of this work.
 .\" %%%LICENSE_END
 .\"
-.TH PTHREAD_SETSCHEDPRIO 3 2014-05-19 "Linux" "Linux Programmer's Manual"
+.TH PTHREAD_SETSCHEDPRIO 3 2015-08-08 "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 );
-.sp
+.PP
+.BI "int pthread_setschedprio(pthread_t " thread ", int " prio );
+.PP
 Compile and link with \fI\-pthread\fP.
 .fi
 .SH DESCRIPTION
@@ -73,7 +73,7 @@ No thread with the ID
 .I thread
 could be found.
 .PP
-POSIX.1-2001 also documents an
+POSIX.1 also documents an
 .B ENOTSUP
 ("attempt was made to set the priority
 to an unsupported value") error for
@@ -81,12 +81,19 @@ to an unsupported value") error for
 .SH VERSIONS
 This function is available in glibc since version 2.3.4.
 .SH ATTRIBUTES
-.SS Multithreading (see pthreads(7))
-The
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lbw22 lb lb
+l l l.
+Interface      Attribute       Value
+T{
 .BR pthread_setschedprio ()
-function is thread-safe.
+T}     Thread safety   MT-Safe
+.TE
 .SH CONFORMING TO
-POSIX.1-2001.
+POSIX.1-2001, POSIX.1-2008.
 .SH NOTES
 For a description of the permissions required to, and the effect of,
 changing a thread's scheduling priority,