18#ifndef PTHREAD_CANCELLATION_H
19#define PTHREAD_CANCELLATION_H
25#define PTHREAD_CANCEL_DISABLE 0
26#define PTHREAD_CANCEL_ENABLE 1
28#define PTHREAD_CANCEL_DEFERRED 0
29#define PTHREAD_CANCEL_ASYNCHRONOUS 1
34#define PTHREAD_CANCELED ((void *) -2)
int pthread_setcancelstate(int state, int *oldstate)
Cancellation point are not supported, yet.
int pthread_setcanceltype(int type, int *oldtype)
Cancellation point are not supported, yet.
int pthread_cancel(pthread_t th)
Tells a pthread that it should exit.
void pthread_testcancel(void)
Exit the current pthread if pthread_cancel() was called for this thread before.
unsigned pthread_t
Datatype to identify a POSIX thread.