Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pthread_cleanup_pop(3) — HP-UX 10.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

pthread_cleanup_push(3)

pthread_cleanup_pop(3)

NAME

pthread_cleanup_pop - Removes the cleanup handler at the top of the cleanup stack and optionally executes it

SYNOPSIS

#include <pthread.h> void pthread_cleanup_pop( int execute);

PARAMETERS

executeInteger that specifies whether the cleanup routine that is popped should be executed or just discarded.  If the value is nonzero, the cleanup routine is executed. 

DESCRIPTION

The pthread_cleanup_pop()  routine removes the routine specified in pthread_cleanup_push() from the top of the calling thread’s cleanup stack and executes it if the value specified in execute is nonzero. This routine and pthread_cleanup_push() are implemented as macros and must be displayed as statements and in pairs within the same lexical scope. You can think of the pthread_cleanup_push() macro as expanding to a string whose first character is a { (left brace) and pthread_cleanup_pop as expanding to a string containing the corresponding } (right brace).

RETURN VALUES

This routine must be used as a statement. 

RELATED INFORMATION

Functions: pthread_cleanup_push(3). 

Hewlett-Packard Company  —  OSF DCE 1.1/HP DCE 1.5

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026