Nvwa
1.1
|
Singleton class to maintain a set of existing instantiations of static_mem_pool. More...
#include <static_mem_pool.h>
Public Member Functions | |
void | recycle () |
Asks all static memory pools to recycle unused memory blocks back to the system. More... | |
void | add (mem_pool_base *memory_pool_p) |
Adds a new memory pool to nvwa::static_mem_pool_set. More... | |
Static Public Member Functions | |
static static_mem_pool_set & | instance () |
Gets the singleton instance of nvwa::static_mem_pool_set. More... | |
Singleton class to maintain a set of existing instantiations of static_mem_pool.
void nvwa::static_mem_pool_set::add | ( | mem_pool_base * | memory_pool_p | ) |
Adds a new memory pool to nvwa::static_mem_pool_set.
memory_pool_p | pointer to the memory pool to add |
|
static |
Gets the singleton instance of nvwa::static_mem_pool_set.
The instance will be created on the first invocation.
void nvwa::static_mem_pool_set::recycle | ( | ) |
Asks all static memory pools to recycle unused memory blocks back to the system.
The caller should get the lock to prevent other operations to nvwa::static_mem_pool_set during its execution.