pthread_testcancel(3thr)pthread_testcancel(3thr)Namepthread_testcancel - Requests delivery of a pending cancel to the cur‐
rent thread.
Syntax
#include <pthread.h>
void pthread_testcancel();
Arguments
None
Description
This routine requests delivery of a pending cancel to the current
thread. The cancel is delivered only if a cancel is pending for the
current thread and general cancel delivery is not currently disabled.
(A thread disables delivery of cancels to itself by calling
pthread_setcancel.)
This routine, when called within very long loops, ensures that a pend‐
ing cancel is noticed within a reasonable amount of time.
Return Values
None
pthread_testcancel(3thr)