diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:41:07 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:41:07 +0000 |
commit | 3af6d22bb3850ab2bac67287e3a3d3b0e32868e5 (patch) | |
tree | 3ee7a3ec64525911fa865bb984c86d997d855527 /man3/pthread_detach.3 | |
parent | Adding debian version 6.05.01-1. (diff) | |
download | manpages-3af6d22bb3850ab2bac67287e3a3d3b0e32868e5.tar.xz manpages-3af6d22bb3850ab2bac67287e3a3d3b0e32868e5.zip |
Merging upstream version 6.7.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'man3/pthread_detach.3')
-rw-r--r-- | man3/pthread_detach.3 | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/man3/pthread_detach.3 b/man3/pthread_detach.3 index aba9f05..25b588a 100644 --- a/man3/pthread_detach.3 +++ b/man3/pthread_detach.3 @@ -4,7 +4,7 @@ .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" -.TH pthread_detach 3 2023-07-20 "Linux man-pages 6.05.01" +.TH pthread_detach 3 2023-10-31 "Linux man-pages 6.7" .SH NAME pthread_detach \- detach a thread .SH LIBRARY @@ -13,7 +13,7 @@ POSIX threads library .SH SYNOPSIS .nf .B #include <pthread.h> -.PP +.P .BI "int pthread_detach(pthread_t " thread ); .fi .SH DESCRIPTION @@ -25,7 +25,7 @@ as detached. When a detached thread terminates, its resources are automatically released back to the system without the need for another thread to join with the terminated thread. -.PP +.P Attempting to detach an already detached thread results in unspecified behavior. .SH RETURN VALUE @@ -57,7 +57,6 @@ T{ .BR pthread_detach () T} Thread safety MT-Safe .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -66,21 +65,21 @@ POSIX.1-2001. Once a thread has been detached, it can't be joined with .BR pthread_join (3) or be made joinable again. -.PP +.P A new thread can be created in a detached state using .BR pthread_attr_setdetachstate (3) to set the detached attribute of the .I attr argument of .BR pthread_create (3). -.PP +.P The detached attribute merely determines the behavior of the system when the thread terminates; it does not prevent the thread from being terminated if the process terminates using .BR exit (3) (or equivalently, if the main thread returns). -.PP +.P Either .BR pthread_join (3) or @@ -91,7 +90,7 @@ so that system resources for the thread can be released. actions has not been done will be freed when the process terminates.) .SH EXAMPLES The following statement detaches the calling thread: -.PP +.P .in +4n .EX pthread_detach(pthread_self()); |