mirror of https://github.com/mkerrisk/man-pages
pthreads.7: Reorder text on thread IDs
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
77ee0a6073
commit
0ad13546b4
|
@ -121,12 +121,14 @@ This identifier is returned to the caller of
|
||||||
.BR pthread_create (3),
|
.BR pthread_create (3),
|
||||||
and a thread can obtain its own thread identifier using
|
and a thread can obtain its own thread identifier using
|
||||||
.BR pthread_self (3).
|
.BR pthread_self (3).
|
||||||
|
|
||||||
Thread IDs are guaranteed to be unique only within a process.
|
Thread IDs are guaranteed to be unique only within a process.
|
||||||
|
(In all pthreads functions that accept a thread ID as an argument,
|
||||||
|
that ID by definition refers to a thread in
|
||||||
|
the same process as the caller.)
|
||||||
|
|
||||||
A thread ID may be reused after a terminated thread has been joined,
|
A thread ID may be reused after a terminated thread has been joined,
|
||||||
or a detached thread has terminated.
|
or a detached thread has terminated.
|
||||||
In all pthreads functions that accept a thread ID as an argument,
|
|
||||||
that ID by definition refers to a thread in
|
|
||||||
the same process as the caller.
|
|
||||||
.SS Thread-safe functions
|
.SS Thread-safe functions
|
||||||
A thread-safe function is one that can be safely
|
A thread-safe function is one that can be safely
|
||||||
(i.e., it will deliver the same results regardless of whether it is)
|
(i.e., it will deliver the same results regardless of whether it is)
|
||||||
|
|
Loading…
Reference in New Issue