Go to the documentation of this file.
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)
unsigned pthread_t
Datatype to identify a POSIX thread.
int pthread_setcancelstate(int state, int *oldstate)
Cancellation point are not supported, yet.
void pthread_testcancel(void)
Exit the current pthread if pthread_cancel() was called for this thread before.
int pthread_cancel(pthread_t th)
Tells a pthread that it should exit.
int pthread_setcanceltype(int type, int *oldtype)
Cancellation point are not supported, yet.