diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2015-05-05 21:09:12 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2015-05-05 21:09:12 +0200 |
| commit | 0ad13546b4620a86dd1c595f39dca4aa8538fbb9 (patch) | |
| tree | 0918427112e223bd4a4f58136bea1d0be365324e /man7 | |
| parent | 77ee0a60738f4f74281928dde433eb88b5ea2bfb (diff) | |
| download | man-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.7 | 8 |
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) |
