diff options
Diffstat (limited to 'lib/libc_r/man/pthread_cancel.3')
-rw-r--r-- | lib/libc_r/man/pthread_cancel.3 | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/lib/libc_r/man/pthread_cancel.3 b/lib/libc_r/man/pthread_cancel.3 index d03467a8c73..1d9fad5c5ce 100644 --- a/lib/libc_r/man/pthread_cancel.3 +++ b/lib/libc_r/man/pthread_cancel.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pthread_cancel.3,v 1.9 2002/02/21 20:12:19 fgsch Exp $ +.\" $OpenBSD: pthread_cancel.3,v 1.10 2002/05/01 08:03:30 mpech Exp $ .\" .Dd January 17, 1999 .Dt PTHREAD_CANCEL 3 @@ -15,11 +15,13 @@ The .Fn pthread_cancel function requests that .Fa thread -be cancelled. The target thread's cancelability state and type determines -when the cancellation takes effect. When the cancellation is acted on, -the cancellation cleanup handlers for +be cancelled. +The target thread's cancelability state and type determines +when the cancellation takes effect. +When the cancellation is acted on, the cancellation cleanup handlers for .Fa thread -are called. When the last cancellation cleanup handler returns, +are called. +When the last cancellation cleanup handler returns, the thread-specific data destructor functions will be called for .Fa thread . When the last destructor function returns, @@ -32,8 +34,8 @@ respect to the calling thread returning from .Pp A status of .Dv PTHREAD_CANCELED -is made available to any threads joining with the target. The symbolic -constant +is made available to any threads joining with the target. +The symbolic constant .Dv PTHREAD_CANCELED expands to a constant expression of type .Ft "(void *)" @@ -42,8 +44,8 @@ whose value matches no pointer to an object in memory nor the value .Sh RETURN VALUES If successful, the .Fn pthread_cancel -functions will return zero. Otherwise an error number will be returned to -indicate the error. +functions will return zero. +Otherwise an error number will be returned to indicate the error. .Sh ERRORS .Fn pthread_cancel will fail if: |