man pthread_setcancelstate () - See pthread_testcancel.3posix

REFERENCE

See pthread_testcancel.3posix