Pop cancellation cleanup handler
#include <pthread.h> void pthread_cleanup_pop( int execute );
libc
The pthread_cleanup_pop() function pops the top cancellation cleanup handler from the calling thread's cancellation cleanup stack and invokes the handler if execute is nonzero.
Because the pthread_cleanup_pop() function is implemented as a macro it must be paired with pthread_cleanup_push() within the same lexical scope.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |
pthread_cleanup_push(), pthread_cancel().