mirror of https://github.com/mkerrisk/man-pages
pthreads.7: Describe return value from pthreads functions
Describe the usual success (0) and failure (non-zero) returns, and note that POSIX.1-2001 specifies that pthreads functions can never fail with the error EINTR. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
fa802e7b90
commit
63c22325ed
|
@ -106,6 +106,13 @@ capabilities (see
|
|||
.IP \- 3
|
||||
CPU affinity
|
||||
.RB ( sched_setaffinity (2))
|
||||
.SS "Pthreads function return values"
|
||||
Most pthreads functions return 0 on sucess, and an error number of failure.
|
||||
Note that the pthreads functions do not set
|
||||
.IR errno .
|
||||
For each of the pthreads functions that can return an error,
|
||||
POSIX.1-2001 specifies that the function can never fail with the error
|
||||
.BR EINTR .
|
||||
.SS "Thread-safe functions"
|
||||
A thread-safe function is one that can be safely
|
||||
(i.e., it will deliver the same results regardless of whether it is)
|
||||
|
|
Loading…
Reference in New Issue