Manages a pool of IPooable objects. More...
#include <ObjectPool.h>
Public Member Functions | |
ObjectPool (IPoolableFactory *factory, int minInstances, int preferedPoolMaxInstances, int maxInstances) | |
factory is not deleted by ObjectPool. | |
IPoolablePtr | GetObjectSmartPtr () |
IPoolable * | GetObject () |
void | ReleaseObject (IPoolable *item) |
void | ReleaseObject (IPoolablePtr item) |
int | Count () const |
Count is not volatile, since it's just advisory. | |
void | CheckMem () const |
void | ValidateMem () const |
Protected Attributes | |
IPoolableFactory * | m_factory |
List< IPoolable * > | m_pool |
Mutex | m_poolMutex |
int | m_minInstances |
int | m_preferedPoolMaxInstances |
int | m_maxInstances |
int | m_count |
Manages a pool of IPooable objects.
Definition at line 67 of file ObjectPool.h.