The pthread_cleanup_pop function

Name

pthread_cleanup_pop -- 

Synopsis

#include <pthread.h>

int pthread_cleanup_pop (int execute);

Description

The pthread_cleanup_pop function pops a function off current thread's cleanup stack and if execute is non-zero, executes the function with the argument given in the corresponding call to pthread_cleanup_push.

Returns

The pthread_cleanup_pop function returns zero if the call is successful, otherwise it sets errno to EINVAL and returns -1.

Implementation Notes

None