ACE
6.1.0
|
Hold Object Manager cleanup (exit) information. More...
#include <Cleanup.h>
Public Member Functions | |
ACE_OS_Exit_Info (void) | |
Default constructor. | |
~ACE_OS_Exit_Info (void) | |
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_ |
Hold Object Manager cleanup (exit) information.
For internal use by the ACE library, only.
ACE_OS_Exit_Info::ACE_OS_Exit_Info | ( | void | ) |
Default constructor.
ACE_OS_Exit_Info::~ACE_OS_Exit_Info | ( | void | ) |
Destructor.
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.
void ACE_OS_Exit_Info::call_hooks | ( | void | ) |
Call all registered cleanup hooks, in reverse order of registration.
bool ACE_OS_Exit_Info::find | ( | void * | object | ) |
Look for a registered cleanup hook object. Returns true if already registered, false if not.
bool ACE_OS_Exit_Info::remove | ( | void * | object | ) |
Remove a registered cleanup hook object. Returns true if removed false if not.
Keeps track of all registered objects.