The pthread_cleanup_push function

Name

pthread_cleanup_push -- 

Synopsis

#include <pthread.h>

int pthread_cleanup_push (void (*fun) (), any_t arg, cleanup_t new);

Description

The pthread_cleanup_push function places the given function on the top of the thread's cleanup stack.

Returns

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

Implementation Notes

None