Memory garbage collector.
More...
#include <MemChecker.hh>
|
static void | Append (CleanupFunction Function, const std::string &Name, int Ring, bool Always=false) |
| Add a cleanup function to call. More...
|
|
static bool | IsExiting () |
| Query the exiting state of the system.
|
|
static void | Info () |
| Debugger routine.
|
|
Memory garbage collector.
This class keeps track of user defined cleanup routines to be called.
- Todo:
- Put in code snippet
void LDASTools::AL::MemChecker::Append |
( |
MemChecker::CleanupFunction |
Function, |
|
|
const std::string & |
Name, |
|
|
int |
Ring, |
|
|
bool |
Always = false |
|
) |
| |
|
static |
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.
The documentation for this class was generated from the following files:
- MemChecker.hh
- MemChecker.cc