Manual Pages for UNIX Darwin command on man pthread_cleanup_push
MyWebUniversity

Manual Pages for UNIX Darwin command on man pthread_cleanup_push

PTHREADCLEANUPPUSH(3) BSD Library Functions Manual PTHREADCLEANUPPUSH(3)

NAME

pptthhrreeaaddcclleeaannuuppppuusshh - add a cleanup function for thread exit

SYNOPSIS

##iinncclluuddee <>

void pptthhrreeaaddcclleeaannuuppppuusshh(void (*cleanuproutine)(void *), void *arg);

DESCRIPTION

The pptthhrreeaaddcclleeaannuuppppuusshh() 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

pptthhrreeaaddcclleeaannuuppppuusshh() does not return any value. EERRRROORRSS None

SEE ALSO

pthreadcleanuppop(3), pthreadexit(3) STANDARDS

pptthhrreeaaddcclleeaannuuppppuusshh() conforms to ISO/IEC 9945-1:1996 (``POSIX.1'').

BSD July 30, 1998 BSD




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™