int pthread_setcancelstate(int state, int *oldstate);
Cancellation requests are held pending until cancellation is enabled for the thread.
Cancellation requests are acted on according to the cancellation type setting for the thread.
The default cancellation state is PTHREAD_CANCEL_ENABLE.
Is the new cancellation state for the calling thread; one of the values specified in the DESCRIPTION section.
Points to a location where the current cancellation state for the calling thread is returned. This parameter may be NULL if the current state is not required.
state is not a valid thread cancellation state setting.
oldstate is an invalid pointer.
POSIX P1003.1 (1996)
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.3 Documentation Build 39.