pthread_testcancel
(3)request delivery of any pending cancelation request
#include <pthread.h> void pthread_testcancel(void);
LIBRARY
DESCRIPTION
Calling pthread_testcancel() creates a cancelation point within the calling thread, so that a thread that is otherwise executing code that contains no cancelation points will respond to a cancelation request.
If cancelability is disabled (using pthread_setcancelstate(3)), or no cancelation request is pending, then a call to pthread_testcancel() has no effect.