nidas
v1.2-1520
|
#include <SamplePool.h>
Public Member Functions | |
std::list< SamplePoolInterface * > | getPools () const |
Get a copy of the current list of SamplePools. More... | |
void | addPool (SamplePoolInterface *pool) |
void | removePool (SamplePoolInterface *pool) |
Static Public Member Functions | |
static SamplePools * | getInstance () |
static void | deleteInstance () |
Private Member Functions | |
SamplePools () | |
~SamplePools () | |
Private Attributes | |
nidas::util::Mutex | _poolsLock |
std::list< SamplePoolInterface * > | _pools |
Static Private Attributes | |
static SamplePools * | _instance = 0 |
static nidas::util::Mutex | _instanceLock = n_u::Mutex() |
|
inlineprivate |
|
private |
void SamplePools::addPool | ( | SamplePoolInterface * | pool | ) |
Referenced by nidas::core::SamplePool< SampleType >::getInstance().
|
static |
Referenced by nidas::core::DSMEngine::~DSMEngine(), and nidas::core::DSMServerApp::~DSMServerApp().
|
static |
list< SamplePoolInterface * > SamplePools::getPools | ( | ) | const |
Get a copy of the current list of SamplePools.
In the general case a SamplePool could be deleted after this list was copied, and the pointer to that SamplePool would be invalid. However, in practice, these SamplePools stay around until the process is finished, so there shouldn't be a problem.
Referenced by nidas::core::SensorHandler::run().
void SamplePools::removePool | ( | SamplePoolInterface * | pool | ) |
Referenced by nidas::core::SamplePool< SampleType >::~SamplePool().
|
staticprivate |
|
staticprivate |
|
private |
|
mutableprivate |