[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]


pthread_testcancel

Requests delivery of any pending cancel to the current thread.

Syntax

pthread_testcancel();

C Binding

#include 

void pthread_testcancel (void);

Arguments

None

Description

This 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 the cancelability state is enabled. (A thread disables delivery of cancels to itself by calling pthread_ setcancelstate.)

This routine, when called within very long loops, ensures that a pending cancel is noticed within a reasonable amount of time.

Return Values

None

Associated Routines

   pthread_setcancelstate



[Return to Bookshelf] [Contents] [Previous Section] [Next Section] [Index] [Help]