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>

Collaboration diagram for nvwa::static_mem_pool_set:
Collaboration graph
[legend]

List of all members.

Public Types

typedef class_level_lock
< static_mem_pool_set >::lock 
lock

Public Member Functions

void recycle ()
 Asks all static memory pools to recycle unused memory blocks back to the system.
void add (mem_pool_base *memory_pool_p)
 Adds a new memory pool to nvwa::static_mem_pool_set.

Static Public Member Functions

static static_mem_pool_setinstance ()
 Gets the singleton instance of nvwa::static_mem_pool_set.

Detailed Description

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


Member Typedef Documentation


Member Function Documentation

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_p pointer to the memory pool to add
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
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:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines

Generated by  doxygen 1.6.2