Cleanup upon exit. More...
#include <AtExit.hh>
Public Types | |
typedef void(* | ExitFunction) () |
Type specifier for exit functions. | |
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. | |
static void | Cleanup () |
Release all resources entrusted. | |
static bool | IsExiting () |
Query the exiting state of the system. | |
static void | Append (ExitFunction Function, const std::string &Name, int Ring) |
Add a cleanup function to call when program is exiting. | |
static void | Cleanup () |
Release all resources entrusted. | |
static bool | IsExiting () |
Query the exiting state of the system. | |
Cleanup upon exit.
This class keeps track of user defined cleanup routines to be called as the application exits.
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 |
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 |
Release all resources entrusted.
\depricated
|
static |
Query the exiting state of the system.
\depricated
|
static |
Query the exiting state of the system.
\depricated