*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: pthread_cleanup_push | Section: 3 | Source: FreeBSD | File: pthread_cleanup_push.3.gz
PTHREAD_CLEANUP_PUSH(3) FreeBSD Library Functions Manual NAME pthread_cleanup_push - add a cleanup function for thread exit LIBRARY POSIX Threads Library (libpthread, -lpthread) SYNOPSIS #include <pthread.h> void pthread_cleanup_push(void (*cleanup_routine)(void *), void *arg); DESCRIPTION The pthread_cleanup_push() function adds cleanup_routine to the top of the stack of cleanup handlers that get called when the current thread exits. When cleanup_routine is called, it is passed arg as its only argument. The pthread_cleanup_push() function is implemented as a macro that opens a new block. Invocations of this function must appear as standalone statements that are paired with a later call of pthread_cleanup_pop(3) in the same lexical scope. RETURN VALUES The pthread_cleanup_push() function does not return any value. ERRORS None SEE ALSO pthread_cleanup_pop(3), pthread_exit(3) STANDARDS The pthread_cleanup_push() function conforms to ISO/IEC 9945-1:1996 ("POSIX.1"). FreeBSD 14.1-RELEASE-p8 October 25, 2014 FreeBSD 14.1-RELEASE-p8

Navigation Options