 | | When deferred cancellation is enabled for a thread, it can be terminated only at defined cancellation points. Thus far, we know of four Pthreads function calls that act as cancellation points: they are pthread_testcancel, pthread_cond_wait, pthread_cond_timedwait, and pthread_join. The pthread_testcancel function allows you to insert an explicit cancellation point in a thread. Because the other functions can cause a calling thread to block for a long time, they force a thread's termination if its cancellation is pending at the time of the call. | |
|