Memory garbage collector.
More...
#include <MemChecker.hh>
Memory garbage collector.
This class keeps track of user defined cleanup routines to be called.
- Todo:
- Put in code snippet
◆ CleanupFunction
typedef void(* LDASTools::AL::MemChecker::CleanupFunction) () |
Type specifier for exit functions.
◆ Append()
Add a cleanup function to call.
- Parameters
-
[in] | Function | The function to be called |
[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. |
- Note
- On systems that support cleaning of the memory prior to exit, setting the environment variable 'MEMCHECK_GARBAGE_COLLECTION' prevents the system from registering cleanup helpers.
◆ cleanup()
void LDASTools::AL::MemChecker::cleanup |
( |
| ) |
|
|
staticprivate |
Release all resources entrusted.
◆ Info()
void LDASTools::AL::MemChecker::Info |
( |
| ) |
|
|
static |
◆ is_exiting()
void LDASTools::AL::MemChecker::is_exiting |
( |
bool |
Value | ) |
|
|
staticprivate |
Set the exit status for other to query.
- Parameters
-
[in] | Value | New value for exiting status. |
◆ IsExiting()
bool LDASTools::AL::MemChecker::IsExiting |
( |
| ) |
|
|
static |
Query the exiting state of the system.
◆ Trigger
The documentation for this class was generated from the following files:
- /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.4/src/MemChecker.hh
- /home/abuild/rpmbuild/BUILD/ldas-tools-al-2.6.4/src/MemChecker.cc