#include <acqiris_thread.h>
Public Member Functions | |
DigitizerData * | getData (int ch, int seg, int dS, int dB) |
void | deleteData (DigitizerData *data) |
void | houseKeeping (int size_to_preserve, int amount_to_preserve=10) |
Static Public Member Functions | |
static DigitizerDataPool * | the () |
Statistics. | |
Private Member Functions | |
DigitizerDataPool () | |
~DigitizerDataPool () | |
Private Attributes | |
QMultiMap< int, DigitizerData * > | _pool |
Pool. | |
QReadWriteLock * | _poolLock |
QSemaphore | _poolSemaphore |
int | _last_used_size |
Housekeeping. |
NSAcqiris::DigitizerDataPool::DigitizerDataPool | ( | ) | [inline, private] |
Referenced by the().
NSAcqiris::DigitizerDataPool::~DigitizerDataPool | ( | ) | [inline, private] |
References _poolLock.
static DigitizerDataPool* NSAcqiris::DigitizerDataPool::the | ( | ) | [inline, static] |
Statistics.
References _poolSemaphore, and DigitizerDataPool().
Referenced by NSAcqiris::ConverterThread::run(), NSAcqiris::DigitizerThread::run(), and NSAcqiris::DigitizerThread::~DigitizerThread().
DigitizerData* NSAcqiris::DigitizerDataPool::getData | ( | int | ch, | |
int | seg, | |||
int | dS, | |||
int | dB | |||
) | [inline] |
References _last_used_size, _pool, _poolLock, and _poolSemaphore.
Referenced by NSAcqiris::DigitizerThread::run().
void NSAcqiris::DigitizerDataPool::deleteData | ( | DigitizerData * | data | ) | [inline] |
References _pool, _poolLock, _poolSemaphore, and NSAcqiris::DigitizerData::fullDataSize.
Referenced by NSAcqiris::ConverterThread::run(), and NSAcqiris::DigitizerThread::run().
void NSAcqiris::DigitizerDataPool::houseKeeping | ( | int | size_to_preserve, | |
int | amount_to_preserve = 10 | |||
) | [inline] |
References _pool, and _poolLock.
Referenced by NSAcqiris::DigitizerThread::run(), and NSAcqiris::DigitizerThread::~DigitizerThread().
QMultiMap<int, DigitizerData*> NSAcqiris::DigitizerDataPool::_pool [private] |
QReadWriteLock* NSAcqiris::DigitizerDataPool::_poolLock [private] |
Referenced by deleteData(), getData(), houseKeeping(), and ~DigitizerDataPool().
QSemaphore NSAcqiris::DigitizerDataPool::_poolSemaphore [private] |
Referenced by deleteData(), getData(), and the().
int NSAcqiris::DigitizerDataPool::_last_used_size [private] |