ldas-tools-al 2.6.4
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
LDASTools::AL::AtExit Class Reference

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.
 

Detailed Description

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.

Member Function Documentation

◆ Append() [1/2]

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]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.

\depricated

◆ Append() [2/2]

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]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.

\depricated

◆ Cleanup() [1/2]

void LDASTools::AL::AtExit::Cleanup ( )
static

Release all resources entrusted.

\depricated

◆ Cleanup() [2/2]

static void LDASTools::AL::AtExit::Cleanup ( )
static

Release all resources entrusted.

\depricated

◆ IsExiting() [1/2]

bool LDASTools::AL::AtExit::IsExiting ( )
static

Query the exiting state of the system.

\depricated

◆ IsExiting() [2/2]

static bool LDASTools::AL::AtExit::IsExiting ( )
static

Query the exiting state of the system.

\depricated


The documentation for this class was generated from the following files: