C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
Garbage collector in objects which use data caching. More...
#include <tool_multithreading.h>
Static Public Member Functions | |
static void | Subscribe (CacheCleaner *obj) |
Subscribe the object for garbage collection. | |
static void | Unsubscribe (CacheCleaner *obj) |
Unsubscribe the object from garbage collection. | |
static bool | Run (bool force=false) |
Perform garbage collection. More... | |
static void | Reset () |
Reset all registered caches. More... | |
static void | Enable (bool allow=true) |
Enable/disable collecting data for garbage collection. By default, collecting data for garbage collection is enabled. | |
Garbage collector in objects which use data caching.
Garbage collector. At request clears caches in registered CacheCleaner objects by calling the method ResetCacheData of each object.
|
static |
Perform garbage collection.
The function should be called in sequential code. When called in a parallel region, does nothing. Calls method ResetCacheData of each object.
[in] | force | - If false, then run garbage collection in caches created for threads which are finished, if true, then force garbage collection in all caches. |
|
static |
Reset all registered caches.
Reset all registered caches after fatal error. Should be called in sequential code. When called in a parallel region, does nothing. Calls method HardReset of each object.