pthread_testcancel() — Establish a cancelation point

Standards

Standards / Extensions C or C++ Dependencies

Single UNIX Specification, version 3

both

z/OS V1R7
POSIX(ON)

Format

#define _OPEN_THREADS 2
#include <pthread.h>

void pthread_testcancel(void);

General description

pthread_testcancel() allows the thread to solicit cancel requests at specific points within the current thread. You must have the cancelability state set to enabled (PTHREAD_CANCEL_ENABLE) for this function to have any effect.

Returned value

pthread_testcancel() returns no values.

Related information