Creates a cancellation point in the calling thread.
#include <pthread.h> void pthread_testcancel ( void );
The pthread_testcancel function has no effect if cancellation is disabled.
pthread_setcancelstate