man pthread_setcanceltype () - See pthread_testcancel.3posix

REFERENCE

See pthread_testcancel.3posix