pthread_testcancel Subroutine


Creates a cancellation point in the calling thread.


Threads Library (libpthreads.a)



void pthread_testcancel ()


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.