ldas-tools-al 2.6.4
|
Cleanup upon exit. More...
#include <AtExit.hh>
Public Types | |
typedef void(* | ExitFunction) () |
Type specifier for exit functions. | |
Static Public Member 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.
|
static |
Add a cleanup function to call when program is exiting.
[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. |
\depricated
|
static |
Release all resources entrusted.
\depricated
|
static |
Query the exiting state of the system.
\depricated