[Previous] [Contents] [Next]

pthread_cleanup_pop()

Pop cancellation cleanup handler

Synopsis:

#include <pthread.h>

void pthread_cleanup_pop( int execute );

Library:

libc

Description:

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.

Classification:

POSIX 1003.1 (Threads)

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

pthread_cleanup_push(), pthread_cancel().


[Previous] [Contents] [Next]