Standards / Extensions | C or C++ | Dependencies |
---|---|---|
Single UNIX Specification, version 3 |
both | z/OS V1R7 |
#define _OPEN_THREADS 2
#include <pthread.h>
int pthread_setcanceltype(int type, int *oldtype);
pthread_setcanceltype() controls when a cancel request is acted on. The old type is stored into the location pointed to by oldtype. The cancelability types can be:
If successful, pthread_setcanceltype() returns 0. Upon failure, returns the following EINVAL error code: