Equalizer
1.2.1
|
An object allocation pool. More...
#include <pool.h>
Public Member Functions | |
Pool () | |
Construct a new pool. | |
virtual | ~Pool () |
Destruct this pool. | |
T * | alloc () |
void | release (T *item) |
Release an item for reuse. | |
void | flush () |
Delete all cached items. |
An object allocation pool.
co::base::Pool< T, locked >::Pool | ( | ) | [inline] |
virtual co::base::Pool< T, locked >::~Pool | ( | ) | [inline, virtual] |
Destruct this pool.
Definition at line 38 of file pool.h.
References co::base::Pool< T, locked >::flush().
T* co::base::Pool< T, locked >::alloc | ( | ) | [inline] |
void co::base::Pool< T, locked >::flush | ( | ) | [inline] |
Delete all cached items.
Definition at line 62 of file pool.h.
Referenced by co::base::Pool< T, locked >::~Pool().
void co::base::Pool< T, locked >::release | ( | T * | item | ) | [inline] |