|
Lunchbox
1.17.0
Multi-threaded C++ toolbox library for all application developers creating high-performance multi-threaded programs.
|
A thread-safe object allocation pool. More...
#include <pool.h>
Inheritance diagram for lunchbox::Pool< T >:
Collaboration diagram for lunchbox::Pool< T >:Public Member Functions | |
| Pool () | |
| Construct a new pool. More... | |
| virtual | ~Pool () |
| Destruct this pool. More... | |
| T * | alloc () |
| void | release (T *item) |
| Release an item for reuse. More... | |
| void | flush () |
| Delete all cached items. More... | |
A thread-safe object allocation pool.
|
inline |
|
inlinevirtual |
Destruct this pool.
Definition at line 35 of file pool.h.
References lunchbox::Pool< T >::flush().
Here is the call graph for this function:
|
inline |
|
inline |
Delete all cached items.
Definition at line 56 of file pool.h.
Referenced by lunchbox::Pool< T >::~Pool().
Here is the caller graph for this function:
|
inline |