|
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
21 #ifndef ELM_ALLOC_LISTGC__H_
22 #define ELM_ALLOC_LISTGC__H_
24 #include <elm/alloc/AbstractGC.h>
36 void runGC()
override;
40 void clean()
override;
43 inline bool gcNeeded()
const {
return !dis && cnt - lcnt > lim; }
void enable() override
Definition: alloc_ListGC.cpp:136
~ListGC()
Definition: alloc_ListGC.cpp:76
Definition: AbstractGC.h:31
Definition: AbstractGC.h:38
Definition: alloc_ListGC.cpp:38
void runGC() override
Definition: alloc_ListGC.cpp:95
ListGC(GCManager &m, int limit=1024)
Definition: alloc_ListGC.cpp:66
void clean() override
Definition: alloc_ListGC.cpp:143
uint64 size
Definition: arch.h:35
void disable() override
Definition: alloc_ListGC.cpp:131
bool mark(void *data, t::size size) override
Definition: alloc_ListGC.cpp:123
void * allocate(t::size size) override
Definition: alloc_ListGC.cpp:81