Nvwa  1.1
Public Member Functions | Static Public Member Functions | List of all members
nvwa::static_mem_pool_set Class Reference

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_setinstance ()
 Gets the singleton instance of nvwa::static_mem_pool_set. More...
 

Detailed Description

Singleton class to maintain a set of existing instantiations of static_mem_pool.

Member Function Documentation

◆ add()

void nvwa::static_mem_pool_set::add ( mem_pool_base memory_pool_p)

Adds a new memory pool to nvwa::static_mem_pool_set.

Parameters
memory_pool_ppointer to the memory pool to add

◆ instance()

static_mem_pool_set & nvwa::static_mem_pool_set::instance ( )
static

Gets the singleton instance of nvwa::static_mem_pool_set.

The instance will be created on the first invocation.

Returns
reference to the instance of nvwa::static_mem_pool_set

◆ recycle()

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.


The documentation for this class was generated from the following files: