A thread safe object pool. More...
#include <Pool.h>
Public Member Functions | |
T * | get () |
Pool () | |
void | put (T *obj) |
~Pool () | |
Private Member Functions | |
Pool & | operator= (const Pool &) |
Pool (const Pool &) | |
Private Attributes | |
FastMutex | mtx |
SimplePool< T, Clear > | pool |
A thread safe object pool.
Definition at line 70 of file Pool.h.
adchpp::Pool< T, Clear >::Pool | ( | ) | [inline] |
adchpp::Pool< T, Clear >::~Pool | ( | ) | [inline] |
adchpp::Pool< T, Clear >::Pool | ( | const Pool< T, Clear > & | ) | [private] |
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.
Pool& adchpp::Pool< T, Clear >::operator= | ( | const Pool< T, Clear > & | ) | [private] |
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.
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().
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().