Query: pthread_cleanup_push
OS: hpux
Section: 3t
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
pthread_cleanup_pop(3T) pthread_cleanup_pop(3T)NAMEpthread_cleanup_pop(), pthread_cleanup_push() - remove or register a cancellation cleanup handlerSYNOPSISPARAMETERSroutine Routine registered as a cancellation cleanup handler. arg Parameter to be passed to the cancellation cleanup handler execute Indicates if the popped cancellation cleanup handler is to be executed.DESCRIPTIONinstalls the cancellation cleanup handler routine onto the calling thread's cancellation cleanup stack. This handler will be popped from the calling thread's cancellation cleanup stack and called with the arg parameter when any of the following occur: (a) the thread calls or returns from its start routine. (b) the thread acts upon a cancellation request. (c) the thread calls with a non-zero execute argument. When a thread terminates, it will execute each of the cancellation cleanup handlers on its cancellation cleanup stack. These handlers will be popped and executed in the reverse order that they were installed ( removes the cancellation cleanup handler at the top of the calling thread's cancellation stack. If execute is non-zero, the cancellation cleanup handler is called after it is removed from the cancellation stack. If execute is zero, the cancellation cleanup handler is simply removed and will not be called. and must appear as statements and in pairs within the same lexical scope. These functions may be macros which contain the opening '{' in the push function and the closing '}' in the pop function. Calling or is undefined if there have been any calls to or made without the matching call since the jump buffer was filled. Calling or from inside a cancellation cleanup handler results in undefined behavior unless the corresponding or was also done inside the cancellation cleanup handler.RETURN VALUEThe and functions must be used as statements. They do not have return values or errors.ERRORSNone.WARNINGSThe functions and must be called in the same lexical scope or the result is undefined behavior.AUTHORand were derived from the IEEE POSIX P1003.1c standard.SEE ALSOpthread_cancel(3T), pthread_setcancelstate(3T).STANDARDS CONFORMANCEPthread Library pthread_cleanup_pop(3T)
Related Man Pages |
---|
pthread_cancel(3c) - opensolaris |
pthread_cleanup_pop(3c) - opensolaris |
pthread_cleanup_push(3c) - sunos |
pthread_cleanup_pop_restore_np(3) - redhat |
pthread_cleanup_pop(3t) - hpux |
Similar Topics in the Unix Linux Community |
---|
execute a .jil file |
pthread_cleanup_push/pop - cleanup handler problem |
Application Cleanup during Linux Shutdown |
Adobe application cleanup |
Login cancellation question |