nidas v1.2.3
|
#include <SamplePool.h>
Public Member Functions | |
std::list< SamplePoolInterface * > | getPools () const |
Get a copy of the current list of SamplePools. | |
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 |
Referenced by getInstance().
|
private |
References _pools, _poolsLock, nidas::core::getSample(), nidas::util::Mutex::lock(), and nidas::util::Mutex::unlock().
void SamplePools::addPool | ( | SamplePoolInterface * | pool | ) |
References _pools, _poolsLock, and nidas::core::getSample().
|
static |
References _instance, _instanceLock, and nidas::core::getSample().
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.
References _pools, _poolsLock, and nidas::core::getSample().
void SamplePools::removePool | ( | SamplePoolInterface * | pool | ) |
References _pools, _poolsLock, and nidas::core::getSample().
|
staticprivate |
Referenced by deleteInstance(), and getInstance().
|
staticprivate |
Referenced by deleteInstance(), and getInstance().
|
private |
Referenced by addPool(), getPools(), removePool(), and ~SamplePools().
|
mutableprivate |
Referenced by addPool(), getPools(), removePool(), and ~SamplePools().