aboutsummaryrefslogtreecommitdiffstats
path: root/man7
diff options
context:
space:
mode:
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)