:man| Alphabetical   Categories   About us 
 
PTHREAD_CLEANUP_PUSH (3) | C library functions | Unix Manual Pages | :man

NAME

pthread_cleanup_push - add a cleanup function for thread exit

CONTENTS

Library
Synopsis
Description
Return Values
Errors
See Also
Standards

LIBRARY


.Lb libc_r
.Lb libpthread
.Lb libthr

SYNOPSIS


.In pthread.h void pthread_cleanup_push "void lp]*cleanup_routinerp]lp]void *rp]" "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.

RETURN VALUES

The pthread_cleanup_push function does not return any value.

ERRORS

None

SEE ALSO

pthread_cleanup_pop(3), pthread_exit(3)

STANDARDS


Share this page

     Follow us

Facebook Twitter Google+ LinkedIn


 
Created by Blin Media, 2008-2013