Nevelex Corporation Nevelex Utilities 1.1.4 09/06/2003
Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

nevelex_util::ObjectPoolManager Class Reference

#include <ObjectPoolManager.h>

Inheritance diagram for nevelex_util::ObjectPoolManager:

Inheritance graph
[legend]
Collaboration diagram for nevelex_util::ObjectPoolManager:

Collaboration graph
[legend]
List of all members.

Public Methods

 ~ObjectPoolManager ()
int open (void *)
int close (u_long)
int svc ()

Static Public Methods

void addPool (ManagedPool *managedPool)
void removePool (ManagedPool *managedPool)

Detailed Description

SINGLETON manager class that handles cleanup of expired objects within all object pools. All ManagedPool objects register themselves with this class when being created. All ManagedPool objects unregister themselves from this class when being destroyed.

Author:
Michel Dalal
Date:
Fri Sep 27 2002
Version:
1.0: Initial version.
1.1.0 06/20/2003: Support for Mac OS X. Explicitly specified std namespace for STL classes and __gnu_cxx namespace for STL extentions.
1.1.1 07/07/2003: Renamed define from HASH_SET_NAMESPACE to HASH_NAMESPACE.
1.1.2 09/05/2003: Fixed if check around hashset include.
Attention:
An end user application NEVER needs to interact with this class.


Member Function Documentation

void nevelex_util::ObjectPoolManager::addPool ( ManagedPool * managedPool ) [static]
 

Adds a ManagedPool in to the SINGLETON manager. If the ManagedPool already exists in the list, only one copy will remain in the list.

Parameters:
managedPool   the pool to add to the manager.

int nevelex_util::ObjectPoolManager::close ( u_long )
 

Implements all task specific termination code.

Parameters:
Unused   !

int nevelex_util::ObjectPoolManager::open ( void * )
 

Implements all task specific intialization code. Just launches and activates a single service thread.

Parameters:
Unused   !

void nevelex_util::ObjectPoolManager::removePool ( ManagedPool * managedPool ) [static]
 

Removes a ManagedPool from the SINGLETON manager. If the ManagedPool does not exist in the list, nothing is done.

Parameters:
managedPool   the pool to remove from the manager.

int nevelex_util::ObjectPoolManager::svc ( )
 

Implements the service method for the task. Handles notifying all ManagedPool objects that they should perform a clean up.


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