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