next up previous contents index
Next: 18.3.18 pthread_testcancel: Check for Up: 18.3 POSIX Threads Reference Previous: 18.3.16 pthread_setcancelstate: Set the

18.3.17 pthread_setcanceltype: Set the cancelation type

 

SYNOPSIS

#include <oskit/threads/pthread.h>

void pthread_setcanceltype(int type, int *oldtype);

DESCRIPTION

Set the cancel type for the current thread, returning the old type in oldtype. Valid types are either PTHREAD_CANCEL_DEFERRED or PTHREAD_CANCEL_ASYNCHRONOUS. This routine is async-cancel safe.

PARAMETERS

type
New cancel type.
oldtype
Location in which to place the original cancel type.

RELATED INFORMATION

pthread_cancel, pthread_setcancelstate



University of Utah Flux Research Group