From 0ad13546b4620a86dd1c595f39dca4aa8538fbb9 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 5 May 2015 21:09:12 +0200 Subject: [PATCH] pthreads.7: Reorder text on thread IDs Signed-off-by: Michael Kerrisk --- man7/pthreads.7 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/man7/pthreads.7 b/man7/pthreads.7 index 3a6882868..98eb86187 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)