mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-03 09:56:38 -05:00
Merge #12108: [Refactor] Remove unused fQuit var from checkqueue.h
30ded3e
[Refactor] Remove unused fQuit var from checkqueue.h (donaloconnor)
Pull request description:
As per PR title, this var is no longer required
Tested by doing a successful compile.
Tree-SHA512: 845e5e0a250cb99e353e8584e9af2df44d97683174e8caa1069bd192b72ab622063765f29676272aecaef87596d72c63ae628404e2f42555136ec2c26d419f2d
This commit is contained in:
commit
9220426280
1 changed files with 2 additions and 5 deletions
|
@ -59,9 +59,6 @@ private:
|
||||||
*/
|
*/
|
||||||
unsigned int nTodo;
|
unsigned int nTodo;
|
||||||
|
|
||||||
//! Whether we're shutting down.
|
|
||||||
bool fQuit;
|
|
||||||
|
|
||||||
//! The maximum number of elements to be processed in one batch
|
//! The maximum number of elements to be processed in one batch
|
||||||
unsigned int nBatchSize;
|
unsigned int nBatchSize;
|
||||||
|
|
||||||
|
@ -89,7 +86,7 @@ private:
|
||||||
}
|
}
|
||||||
// logically, the do loop starts here
|
// logically, the do loop starts here
|
||||||
while (queue.empty()) {
|
while (queue.empty()) {
|
||||||
if ((fMaster || fQuit) && nTodo == 0) {
|
if (fMaster && nTodo == 0) {
|
||||||
nTotal--;
|
nTotal--;
|
||||||
bool fRet = fAllOk;
|
bool fRet = fAllOk;
|
||||||
// reset the status for new work later
|
// reset the status for new work later
|
||||||
|
@ -131,7 +128,7 @@ public:
|
||||||
boost::mutex ControlMutex;
|
boost::mutex ControlMutex;
|
||||||
|
|
||||||
//! Create a new check queue
|
//! Create a new check queue
|
||||||
explicit CCheckQueue(unsigned int nBatchSizeIn) : nIdle(0), nTotal(0), fAllOk(true), nTodo(0), fQuit(false), nBatchSize(nBatchSizeIn) {}
|
explicit CCheckQueue(unsigned int nBatchSizeIn) : nIdle(0), nTotal(0), fAllOk(true), nTodo(0), nBatchSize(nBatchSizeIn) {}
|
||||||
|
|
||||||
//! Worker thread
|
//! Worker thread
|
||||||
void Thread()
|
void Thread()
|
||||||
|
|
Loading…
Add table
Reference in a new issue