Class represening a pool of objects. More...
#include <objectPool.hpp>
Public Member Functions | |
ObjectPool (const unsigned to) | |
ObjectPool () | |
~ObjectPool () | |
std::size_t | available () const |
objectType | get () |
void | add (objectType obj) |
unsigned | timeout () const |
void | timeout (unsigned to) |
Static Public Member Functions | |
static void | static_add (ObjectPool *pool, objectType obj) |
Private Attributes | |
std::vector< objectType > | m_availList |
list (vector really) of available objects More... | |
boost::mutex | m_mutex |
condition variable associated mutex More... | |
boost::condition_variable | m_cond |
the condition variable More... | |
unsigned | m_timeout |
acquire timeout More... | |
Class represening a pool of objects.
objectType | type of object stored in the pool |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
private |
list (vector really) of available objects
|
private |
the condition variable
|
private |
condition variable associated mutex
|
private |
acquire timeout
Copyright © 2014 - Project Wolframe - All Rights Reserved