Cleanup upon exit.
More...
#include <AtExit.hh>
|
typedef void(* | ExitFunction )() |
| Type specifier for exit functions.
|
|
|
static void | Append (ExitFunction Function, const std::string &Name, int Ring) |
| Add a cleanup function to call when program is exiting. More...
|
|
static void | Cleanup () |
| Release all resources entrusted. More...
|
|
static bool | IsExiting () |
| Query the exiting state of the system. More...
|
|
Cleanup upon exit.
This class keeps track of user defined cleanup routines to be called as the application exits.
- Deprecated:
- This class has been depricated because it is unsafe to call when using share objects. As this class was being used to deallocated resource to make reading of valgrind output more meaningful, please reference LDASTools::AL::MemChecker instead.
void LDASTools::AL::AtExit::Append |
( |
AtExit::ExitFunction |
Function, |
|
|
const std::string & |
Name, |
|
|
int |
Ring |
|
) |
| |
|
static |
Add a cleanup function to call when program is exiting.
- Parameters
-
[in] | Function | The function to be called when exiting |
[in] | Name | A descriptive name of the action being taken |
[in] | Ring | The level at which to call. The ring structure is inverted in that rings of higher value are called prior to rings of lesser values. |
void LDASTools::AL::AtExit::Cleanup |
( |
| ) |
|
|
static |
Release all resources entrusted.
bool LDASTools::AL::AtExit::IsExiting |
( |
| ) |
|
|
static |
Query the exiting state of the system.
The documentation for this class was generated from the following files: