VMS Help
POSIX Threads, PTHREAD routines, pthread_testcancel
*Conan The Librarian (sorry for the slow response - running on an old VAX)
|
|
Requests delivery of a pending cancelation request to the calling
thread.
#include <pthread.h>
void
pthread_testcancel (void);
None
This routine requests delivery of a pending cancelation request
to the calling thread. Thus, calling this routine creates a
cancelation point within the calling thread.
The cancelation request is delivered only if a request is pending
for the calling thread and the calling thread's cancelability
state is enabled. (A thread disables delivery of cancelation
requests to itself by calling pthread_setcancelstate().)
When called within very long loops, this routine ensures that
a pending cancelation request is noticed by the calling thread
within a reasonable amount of time.
None
pthread_setcancelstate()
[legal]
[privacy]
[GNU]
[policy]
[netiquette]
[sponsors]
[FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.