Cancellation


Cancelling a Thread

int pthread_cancel(pthread_t);


Controlling Cancellation

int pthread_setcancelstate(int state, int * old_state);
PTHREAD_CANCEL_ENABLE, PTHREAD_CANCEL_DISABLE

int pthread_setcanceltype(int type, int * old_type);
PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_DEFERRED


Deferred Cancellation

void pthread_testcancel(void);


[TOP] [BACK] [FORWARD]


Prepared by Chris Provenzano (proven@mit.edu)