1 .\" $FreeBSD: src/lib/libc_r/man/pthread_cancel.3,v 1.3.2.4 2001/12/17 10:08:26 ru Exp $
2 .\" $DragonFly: src/lib/libc_r/man/pthread_cancel.3,v 1.2 2003/06/17 04:26:47 dillon Exp $
8 .Nd cancel execution of a thread
14 .Fn pthread_cancel "pthread_t thread"
18 function requests that
21 The target thread's cancelability state and type determines
22 when the cancellation takes effect.
23 When the cancellation is acted on,
24 the cancellation cleanup handlers for
27 When the last cancellation cleanup handler returns,
28 the thread-specific data destructor functions will be called for
30 When the last destructor function returns,
34 The cancellation processing in the target thread runs asynchronously with
35 respect to the calling thread returning from
40 is made available to any threads joining with the target.
44 expands to a constant expression of type
46 whose value matches no pointer to an object in memory nor the value
51 functions will return zero.
52 Otherwise an error number will be returned to
59 No thread could be found corresponding to that specified by the given
63 .Xr pthread_cleanup_pop 3 ,
64 .Xr pthread_cleanup_push 3 ,
67 .Xr pthread_setcancelstate 3 ,
68 .Xr pthread_setcanceltype 3 ,
69 .Xr pthread_testcancel 3
75 This man page was written by
76 .An David Leonard Aq d@openbsd.org