pthread_cleanup_pop(3-thr) pthread_cleanup_pop(3-thr)
NAME
pthreadcleanuppop - removes the cleanup handler at the top of the
cleanup stack and optionally executes it
SYNOPSIS
#include <pthread.h>
void pthreadcleanuppop(int execute);
PARAMETERS
execute Integer that specifies whether the cleanup routine that is
popped should be executed or just discarded. If the value is
nonzero, the cleanup routine is executed.
DESCRIPTION
The pthreadcleanuppop() routine removes the routine specified in
pthreadcleanuppush() from the top of the calling thread's cleanup
stack and executes it if the value specified in execute is nonzero.
This routine and pthreadcleanuppush() are implemented as macros and
must be displayed as statements and in pairs within the same lexical
scope. You can think of the pthreadcleanuppush() macro as expanding
to a string whose first character is a { (left brace) and
pthreadcleanuppop as expanding to a string containing the corre-
sponding } (right brace).
RETURN VALUES
This routine must be used as a statement.
SEE ALSO
pthreadcleanuppush(3-thr).
Page 1 Reliant UNIX 5.44 Printed 11/98