ldas-tools-al  2.6.7
Classes | Namespaces | Typedefs | Functions
AtExit.hh File Reference
#include <list>
#include "ldastoolsal/Deprecated.hh"
#include "ldastoolsal/mutexlock.hh"
#include "ldastoolsal/Singleton.hh"
Include dependency graph for AtExit.hh:

Classes

class  LDASTools::AL::AtExit
 Cleanup upon exit. More...
 

Namespaces

 LDASTools
 Objects of general use and interst.
 
 LDASTools::AL
 The Abstraction Layer.
 

Typedefs

typedef void(* ExitFunction) ()
 Type specifier for exit functions. More...
 

Functions

class LDASTools::AL::AtExit LDASTools::AL::LDASTOOLS_DEPRECATED ("use method LDASTools::AL::MemChecker instead")
 
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...
 

Typedef Documentation

◆ ExitFunction

typedef void( * ExitFunction) ()

Type specifier for exit functions.

Function Documentation

◆ Append()

static void LDASTOOLS_DEPRECATED::Append ( ExitFunction  Function,
const std::string &  Name,
int  Ring 
)
static

Add a cleanup function to call when program is exiting.

Parameters
[in]FunctionThe function to be called when exiting
[in]NameA descriptive name of the action being taken
[in]RingThe 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()

static void LDASTOOLS_DEPRECATED::Cleanup ( )
static

Release all resources entrusted.

◆ IsExiting()

static bool LDASTOOLS_DEPRECATED::IsExiting ( )
static

Query the exiting state of the system.