Cleanup upon exit.
More...
#include <AtExit.hh>
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.
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.
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.
◆ ExitFunction [1/3]
typedef void( * LDASTools::AL::AtExit::ExitFunction) () |
Type specifier for exit functions.
◆ ExitFunction [2/3]
typedef void( * LDASTools::AL::AtExit::ExitFunction) () |
Type specifier for exit functions.
◆ ExitFunction [3/3]
typedef void( * LDASTools::AL::AtExit::ExitFunction) () |
Type specifier for exit functions.
◆ Append() [1/3]
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. |
◆ Append() [2/3]
static void LDASTools::AL::AtExit::Append |
( |
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. |
◆ Append() [3/3]
static void LDASTools::AL::AtExit::Append |
( |
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. |
◆ Cleanup() [1/3]
void LDASTools::AL::AtExit::Cleanup |
( |
| ) |
|
|
static |
Release all resources entrusted.
◆ Cleanup() [2/3]
static void LDASTools::AL::AtExit::Cleanup |
( |
| ) |
|
|
static |
Release all resources entrusted.
◆ Cleanup() [3/3]
static void LDASTools::AL::AtExit::Cleanup |
( |
| ) |
|
|
static |
Release all resources entrusted.
◆ IsExiting() [1/3]
bool LDASTools::AL::AtExit::IsExiting |
( |
| ) |
|
|
static |
Query the exiting state of the system.
◆ IsExiting() [2/3]
static bool LDASTools::AL::AtExit::IsExiting |
( |
| ) |
|
|
static |
Query the exiting state of the system.
◆ IsExiting() [3/3]
static bool LDASTools::AL::AtExit::IsExiting |
( |
| ) |
|
|
static |
Query the exiting state of the system.
The documentation for this class was generated from the following files:
- /build/ldas-tools-al-2.6.4/debian/tmp/usr/include/ldastoolsal/AtExit.hh
- /build/ldas-tools-al-2.6.4/src/AtExit.cc