PTHREADCLEANUPUSH(3) BSD Library Functions Manual PTHREADCLEANUPUSH(3)
NAME
pthreadcleanuppush -- add a cleanup function for thread exit
SYNOPSIS
##include <>
void
pthreadcleanuppush(void (*cleanuproutine)(void *), void *arg);
DESCRIPTION
The pthreadcleanuppush() function adds cleanuproutine to the top of
the stack of cleanup handlers that get called when the current thread
exits.
When cleanuproutine is called, it is passed arg as its only argument.
RETURN VALUES
pthreadcleanuppush() does not return any value.
ERORS
None
SEE ALSO
pthreadcleanuppop(3), pthreadexit(3)
STANDARDS
pthreadcleanuppush() conforms to ISO/IEC 9945-1:1996 (``POSIX.1'').
BSD July 30, 1998 BSD
|