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

  man pages->OpenBSD man pages -> pthread_cleanup_push (3)              



NAME    [Toc]    [Back]

     pthread_cleanup_push - add a cleanup function for thread exit

SYNOPSIS    [Toc]    [Back]

     #include <pthread.h>

     pthread_cleanup_push(void  (*cleanup_routine)(void  *), void

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

RETURN VALUES    [Toc]    [Back]

     pthread_cleanup_push() does not return any value.

ERRORS    [Toc]    [Back]


SEE ALSO    [Toc]    [Back]

     pthread_cleanup_pop(3), pthread_exit(3)

STANDARDS    [Toc]    [Back]

     pthread_cleanup_push()   conforms   to  ISO/IEC  9945-1:1996

OpenBSD     3.6                           July      30,      1998
[ 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