pthread_testcancel Subroutine Purpose Creates a cancellation point in the calling thread. Library Threads Library (libpthreads.a) Syntax #include
void pthread_testcancel () Description The pthread_testcancel subroutine creates a cancellation point in the calling thread. If a cancellation request is pending, and cancelability enabled, the cancellation is performed and the thread is terminated. Note: The pthread.h header file must be the first included file of each source file using the threads library. Implementation Specifics This subroutine is part of the Base Operating System (BOS) Runtime. Related Information The pthread_cancel subroutine, pthread_setcancelstate subroutine, pthread_setcanceltype subroutine. Terminating Threads. Threads Library Quick Reference.