NAME
pthread_testcancel() — process any pending cancellation requests
SYNOPSIS
#include <pthread.h>
void pthread_testcancel(void);
DESCRIPTION
The
pthread_testcancel()
function checks for any pending cancellation requests against the calling
thread. If a cancellation request is pending and the calling thread has
its cancelability state enabled, the cancellation request will be acted upon.
If the cancelability state of the calling thread is disabled, this function
will have no effect.
RETURN VALUE
None. The
pthread_testcancel()
function does not return a value.
If the calling thread acts upon a cancellation request, this function
will not return; the calling thread will be terminated.
AUTHOR
pthread_testcancel()
was derived from the IEEE POSIX P1003.1c standard.
STANDARDS CONFORMANCE
pthread_testcancel(): POSIX 1003.1c.