#include <detmempool.h>
Public Member Functions | |
DetMemPool () | |
virtual bool | performGC (bool bForceReclaim=false) |
This class works exactly as a basic memory pool, with the exception that if a garbage collection loop does not terminate by a certain time, the loop is interrupted.
This may result in none of the garbage to be reclaimed; so the applications usign this memory pool must at times disable the collection timeout, or set it to a sufficently wide interval, so that a full collection may take place. However, the application stays in control of the garbage collection process.
Sophisticated applications may derive this class to provide automatic timing strategies that would turn temporarily off the timeout when allocated memory becomes too huge.
Falcon::DetMemPool::DetMemPool | ( | ) | [inline] |
virtual bool Falcon::DetMemPool::performGC | ( | bool | bForceReclaim = false |
) | [virtual] |