]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/pthread_join.3
man*/: srcfix (Use .P instead of .PP or .LP)
[thirdparty/man-pages.git] / man3 / pthread_join.3
index 872347ec5e70a8a31594cff1e19206a79eb7b05d..cbdd363aeb41bfb4955400bb70917d51f59f53e1 100644 (file)
@@ -13,7 +13,7 @@ POSIX threads library
 .SH SYNOPSIS
 .nf
 .B #include <pthread.h>
-.PP
+.P
 .BI "int pthread_join(pthread_t " thread ", void **" retval );
 .fi
 .SH DESCRIPTION
@@ -28,7 +28,7 @@ returns immediately.
 The thread specified by
 .I thread
 must be joinable.
-.PP
+.P
 If
 .I retval
 is not NULL, then
@@ -42,7 +42,7 @@ If the target thread was canceled, then
 .B PTHREAD_CANCELED
 is placed in the location pointed to by
 .IR retval .
-.PP
+.P
 If multiple threads simultaneously try to join with the same thread,
 the results are undefined.
 If the thread calling
@@ -102,10 +102,10 @@ the caller is guaranteed that the target thread has terminated.
 The caller may then choose to do any clean-up that is required
 after termination of the thread (e.g., freeing memory or other
 resources that were allocated to the target thread).
-.PP
+.P
 Joining with a thread that has previously been joined results in
 undefined behavior.
-.PP
+.P
 Failure to join with a thread that is joinable
 (i.e., one that is not detached),
 produces a "zombie thread".
@@ -113,13 +113,13 @@ Avoid doing this,
 since each zombie thread consumes some system resources,
 and when enough zombie threads have accumulated,
 it will no longer be possible to create new threads (or processes).
-.PP
+.P
 There is no pthreads analog of
 .IR "waitpid(\-1,\ &status,\ 0)" ,
 that is, "join with any terminated thread".
 If you believe you need this functionality,
 you probably need to rethink your application design.
-.PP
+.P
 All of the threads in a process are peers:
 any thread can join with any other thread in the process.
 .SH EXAMPLES