#include <oskit/threads/pthread.h>void pthread_setcancelstate(int state, int *oldstate);
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.
- state
- New cancel state.
- oldstate
- Location in which to place the original cancel state.
pthread_cancel, pthread_setcanceltype