pthread_testcancel(3-thr) pthread_testcancel(3-thr)
NAME
pthreadtestcancel - requests delivery of a pending cancel to the
current thread
SYNOPSIS
#include <pthread.h>
void pthreadtestcancel();
DESCRIPTION
The pthreadtestcancel() routine requests delivery of a pending cancel
to the current thread. The cancel is delivered only if a cancel is
pending for the current thread and general cancel delivery is not
currently disabled. (A thread disables delivery of cancels to itself
by calling the pthreadsetcancel() routine.)
This routine, when called within very long loops, ensures that a pend-
ing cancel is noticed within a reasonable amount of time.
RETURN VALUES
No value is returned.
SEE ALSO
pthreadcancel(3-thr), pthreadsetasynccancel(3-thr),
pthreadsetcancel(3-thr).
Page 1 Reliant UNIX 5.44 Printed 11/98