Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

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 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 static_mem_pool_set.

Static Public Member Functions

static_mem_pool_setinstance ()
 Creates the singleton instance of static_mem_pool_set.

Detailed Description

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


Member Typedef Documentation

typedef class_level_lock<static_mem_pool_set>::lock static_mem_pool_set::lock
 


Member Function Documentation

void static_mem_pool_set::add mem_pool_base __memory_pool_p  ) 
 

Adds a new memory pool to static_mem_pool_set.

Parameters:
__memory_pool_p pointer to the memory pool to add

static_mem_pool_set & static_mem_pool_set::instance  )  [static]
 

Creates the singleton instance of static_mem_pool_set.

Returns:
reference to the instance of static_mem_pool_set

void 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 static_mem_pool_set during its execution.


The documentation for this class was generated from the following files:
Generated on Sat Oct 6 08:27:29 2007 for Nvwa by  doxygen 1.3.9.1