diff options
author | Mike Pechkin <mpech@cvs.openbsd.org> | 2002-05-01 08:03:31 +0000 |
---|---|---|
committer | Mike Pechkin <mpech@cvs.openbsd.org> | 2002-05-01 08:03:31 +0000 |
commit | 41434dbdbf3099a023505b5b3915bf4d9b778ee1 (patch) | |
tree | 1ca936fb3301ad4347fcc3a38fd2c83e87a15817 /lib/libpthread/man/pthread_exit.3 | |
parent | 04e9f1abe6384e852ca0207d882814dab9237dd4 (diff) |
o) start new sentence on a new line;
o) always close .Bl tags;
o) fix usage of .Xr;
millert@ ok
Diffstat (limited to 'lib/libpthread/man/pthread_exit.3')
-rw-r--r-- | lib/libpthread/man/pthread_exit.3 | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/libpthread/man/pthread_exit.3 b/lib/libpthread/man/pthread_exit.3 index db1b4fbf03f..6c1153e9e94 100644 --- a/lib/libpthread/man/pthread_exit.3 +++ b/lib/libpthread/man/pthread_exit.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_exit.3,v 1.9 2002/02/21 20:12:19 fgsch Exp $ +.\" $OpenBSD: pthread_exit.3,v 1.10 2002/05/01 08:03:30 mpech Exp $ .\" .\" Copyright (c) 1996 John Birrell <jb@cimlogic.com.au>. .\" All rights reserved. @@ -47,12 +47,14 @@ The .Fn pthread_exit function terminates the calling thread and makes the value .Fa value_ptr -available to any successful join with the terminating thread. Any +available to any successful join with the terminating thread. +Any cancellation cleanup handlers that have been pushed and are not yet popped are popped in the reverse order that they were pushed and then executed. After all cancellation handlers have been executed, if the thread has any thread-specific data, appropriate destructor functions are called in an -unspecified order. Thread termination does not release any application +unspecified order. +Thread termination does not release any application visible process resources, including, but not limited to, mutexes and file descriptors, nor does it perform any process level cleanup actions, including, but not limited to, calling @@ -73,14 +75,16 @@ that was invoked as the result of an implicit or explicit call to .Fn pthread_exit . .Pp After a thread has terminated, the result of access to local (auto) -variables of the thread is undefined. Thus, references to local variables +variables of the thread is undefined. +Thus, references to local variables of the exiting thread should not be used for the .Fn pthread_exit .Fa value_ptr parameter value. .Pp The process will exit with an exit status of 0 after the last thread has -been terminated. The behavior is as if the implementation called +been terminated. +The behavior is as if the implementation called .Fn exit with a zero argument at thread termination time. .Sh RETURN VALUES |