next up previous contents index
Next: 18.3.16 pthread_setcancelstate: Set the Up: 18.3 POSIX Threads Reference Previous: 18.3.14 pthread_cancel: Cancel a

18.3.15 pthread_cleanup_push: Push a cancellation cleanup handler routine onto the calling thread's cancellation cleanup stack

 

SYNOPSIS

#include <oskit/threads/pthread.h>

void pthread_cleanup_push(void (*routine)(void *), void *arg);

DESCRIPTION

Push a cancellation cleanup handler routine onto the calling thread's cancellation cleanup stack. When requested, the cleanup routine will be popped from the cancellation stack, and invoked with the argument arg.

PARAMETERS

routine
The cleanup handler routine.
arg
The argument to pass to the cleanup handler routine.

RELATED INFORMATION

pthread_cancel, pthread_cleaup_pop



University of Utah Flux Research Group