Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
•All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
checkqueue.h
Go to the documentation of this file.
131 explicit CCheckQueue(unsigned int nBatchSizeIn) : nIdle(0), nTotal(0), fAllOk(true), nTodo(0), nBatchSize(nBatchSizeIn) {}
boost::condition_variable condWorker
Worker threads block on this when out of work.
Definition: checkqueue.h:37
boost::condition_variable condMaster
Master thread blocks on this when out of work.
Definition: checkqueue.h:40
bool Loop(bool fMaster=false)
Internal function that does bulk of the verification work.
Definition: checkqueue.h:66
CCheckQueueControl(CCheckQueue< T > *const pqueueIn)
Definition: checkqueue.h:181
RAII-style controller object for a CCheckQueue that guarantees the passed queue is finished before co...
Definition: checkqueue.h:17
CCheckQueueControl()=delete
bool Wait()
Wait until execution finishes, and return whether all evaluations were successful.
Definition: checkqueue.h:140
unsigned int nTodo
Number of verifications that haven't completed yet.
Definition: checkqueue.h:60
unsigned int nBatchSize
The maximum number of elements to be processed in one batch.
Definition: checkqueue.h:63
CCheckQueueControl & operator=(const CCheckQueueControl &)=delete
boost::mutex ControlMutex
Mutex to ensure only one concurrent CCheckQueueControl.
Definition: checkqueue.h:128