next up previous contents index
Next: 18.3.17 pthread_setcanceltype: Set the Up: 18.3 POSIX Threads Reference Previous: 18.3.15 pthread_cleanup_push: Push a

18.3.16 pthread_setcancelstate: Set the cancelation state

 

SYNOPSIS

#include <oskit/threads/pthread.h>

void pthread_setcancelstate(int state, int *oldstate);

DESCRIPTION

Set the cancel state for the current thread, returning the old state in oldstate. Valid states are either PTHREAD_CANCEL_ENABLE or PTHREAD_CANCEL_DISABLE. This routine is async-cancel safe.

PARAMETERS

state
New cancel state.
oldstate
Location in which to place the original cancel state.

RELATED INFORMATION

pthread_cancel, pthread_setcanceltype



University of Utah Flux Research Group