*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->FreeBSD man pages -> pthread_cleanup_push (3)              
Title
Content
Arch
Section
 

Contents


PTHREAD_CLEANUP_PUS... FreeBSD Library Functions Manual PTHREAD_CLEANUP_PUS...

NAME    [Toc]    [Back]

     pthread_cleanup_push -- add a cleanup function for thread exit

LIBRARY    [Toc]    [Back]

     Reentrant C Library (libc_r, -lc_r)

SYNOPSIS    [Toc]    [Back]

     #include <pthread.h>

     void
     pthread_cleanup_push(void (*cleanup_routine)(void *), void *arg);

DESCRIPTION    [Toc]    [Back]

     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.

RETURN VALUES    [Toc]    [Back]

     The pthread_cleanup_push() function does not return any value.

ERRORS    [Toc]    [Back]

     None

SEE ALSO    [Toc]    [Back]

      
      
     pthread_cleanup_pop(3), pthread_exit(3)

STANDARDS    [Toc]    [Back]

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


FreeBSD 5.2.1			 July 30, 1998			 FreeBSD 5.2.1
[ Back ]
 Similar pages
Name OS Title
pthread_cleanup_push IRIX manage thread cleanup handlers
pthread_cleanup_push Tru64 (Macro) Establishes a cleanup handler routine to be executed when the thread exits or is canceled
openpam_free_data FreeBSD generic cleanup function
pthread_cleanup_pop Tru64 (Macro) Removes the cleanup handler routine from the calling thread's cleanup handler stack and opti...
atexit NetBSD register a function to be called on exit
atexit OpenBSD register a function to be called on exit
atexit FreeBSD register a function to be called on exit
pthread_cleanup_pop FreeBSD call the first cleanup routine
cleanup HP-UX HP-UX patch cleanup utility
pthread_cleanup_pop OpenBSD call the first cleanup routine
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service