ACE 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
ACE_OS_Exit_Info Class Reference

Hold Object Manager cleanup (exit) information. More...

#include <Cleanup.h>

Collaboration diagram for ACE_OS_Exit_Info:
Collaboration graph
[legend]

Public Member Functions

 ACE_OS_Exit_Info ()
 Default constructor.
 
 ~ACE_OS_Exit_Info ()
 Destructor.
 
int at_exit_i (void *object, ACE_CLEANUP_FUNC cleanup_hook, void *param, const char *name=0)
 Use to register a cleanup hook.
 
bool find (void *object)
 
bool remove (void *object)
 
void call_hooks ()
 

Private Attributes

ACE_Cleanup_Info_Node_List registered_objects_
 

Detailed Description

Hold Object Manager cleanup (exit) information.

For internal use by the ACE library, only.

Constructor & Destructor Documentation

◆ ACE_OS_Exit_Info()

ACE_OS_Exit_Info::ACE_OS_Exit_Info ( )

Default constructor.

◆ ~ACE_OS_Exit_Info()

ACE_OS_Exit_Info::~ACE_OS_Exit_Info ( )

Destructor.

Member Function Documentation

◆ at_exit_i()

int ACE_OS_Exit_Info::at_exit_i ( void * object,
ACE_CLEANUP_FUNC cleanup_hook,
void * param,
const char * name = 0 )

Use to register a cleanup hook.

◆ call_hooks()

void ACE_OS_Exit_Info::call_hooks ( )

Call all registered cleanup hooks, in reverse order of registration.

◆ find()

bool ACE_OS_Exit_Info::find ( void * object)

Look for a registered cleanup hook object. Returns true if already registered, false if not.

◆ remove()

bool ACE_OS_Exit_Info::remove ( void * object)

Remove a registered cleanup hook object. Returns true if removed false if not.

Member Data Documentation

◆ registered_objects_

ACE_Cleanup_Info_Node_List ACE_OS_Exit_Info::registered_objects_
private

Keeps track of all registered objects.


The documentation for this class was generated from the following files: