aboutsummaryrefslogtreecommitdiffstats
path: root/man7
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2015-05-05 21:09:12 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2015-05-05 21:09:12 +0200
commit0ad13546b4620a86dd1c595f39dca4aa8538fbb9 (patch)
tree0918427112e223bd4a4f58136bea1d0be365324e /man7
parent77ee0a60738f4f74281928dde433eb88b5ea2bfb (diff)
downloadman-pages-0ad13546b4620a86dd1c595f39dca4aa8538fbb9.tar.gz
pthreads.7: Reorder text on thread IDs
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7')
-rw-r--r--man7/pthreads.78
1 files changed, 5 insertions, 3 deletions
diff --git a/man7/pthreads.7 b/man7/pthreads.7
index 3a68828686..98eb861870 100644
--- a/man7/pthreads.7
+++ b/man7/pthreads.7
@@ -121,12 +121,14 @@ This identifier is returned to the caller of
.BR pthread_create (3),
and a thread can obtain its own thread identifier using
.BR pthread_self (3).
+
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,
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
A thread-safe function is one that can be safely
(i.e., it will deliver the same results regardless of whether it is)