adchpp::Pool< T, Clear > Class Template Reference

A thread safe object pool. More...

#include <Pool.h>

Collaboration diagram for adchpp::Pool< T, Clear >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

T * get ()
 Pool ()
void put (T *obj)
 ~Pool ()

Private Member Functions

Pooloperator= (const Pool &)
 Pool (const Pool &)

Private Attributes

FastMutex mtx
SimplePool< T, Clear > pool

Detailed Description

template<class T, class Clear = PoolDummy<T>>
class adchpp::Pool< T, Clear >

A thread safe object pool.

Definition at line 70 of file Pool.h.


Constructor & Destructor Documentation

template<class T , class Clear = PoolDummy<T>>
adchpp::Pool< T, Clear >::Pool (  )  [inline]

Definition at line 72 of file Pool.h.

template<class T , class Clear = PoolDummy<T>>
adchpp::Pool< T, Clear >::~Pool (  )  [inline]

Definition at line 73 of file Pool.h.

template<class T , class Clear = PoolDummy<T>>
adchpp::Pool< T, Clear >::Pool ( const Pool< T, Clear > &   )  [private]

Member Function Documentation

template<class T , class Clear = PoolDummy<T>>
T* adchpp::Pool< T, Clear >::get (  )  [inline]

Definition at line 75 of file Pool.h.

References adchpp::Pool< T, Clear >::mtx, and adchpp::Pool< T, Clear >::pool.

template<class T , class Clear = PoolDummy<T>>
Pool& adchpp::Pool< T, Clear >::operator= ( const Pool< T, Clear > &   )  [private]
template<class T , class Clear = PoolDummy<T>>
void adchpp::Pool< T, Clear >::put ( T *  obj  )  [inline]

Definition at line 79 of file Pool.h.

References adchpp::Pool< T, Clear >::mtx, and adchpp::Pool< T, Clear >::pool.


Member Data Documentation

template<class T , class Clear = PoolDummy<T>>
FastMutex adchpp::Pool< T, Clear >::mtx [private]

Definition at line 87 of file Pool.h.

Referenced by adchpp::Pool< T, Clear >::get(), and adchpp::Pool< T, Clear >::put().

template<class T , class Clear = PoolDummy<T>>
SimplePool<T, Clear> adchpp::Pool< T, Clear >::pool [private]

Definition at line 89 of file Pool.h.

Referenced by adchpp::Pool< T, Clear >::get(), and adchpp::Pool< T, Clear >::put().

Generated on Sat Nov 27 23:38:46 2010 for adchpp by  doxygen 1.6.3