diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-01-29 13:14:23 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-01-29 13:21:50 +0100 |
commit | 9220426280d0c4ac648bd7b0ccf64ea861e4d491 (patch) | |
tree | d090e6dc4f5fbc13270107c0cfbe6d626837ce20 /src | |
parent | 3fa1ab4368cf61a746066604cddbae898d327340 (diff) | |
parent | 30ded3e3d888f75b6fa8b2e55a3883f799e00775 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/checkqueue.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/checkqueue.h b/src/checkqueue.h index 9b4a460bae..7500bae60e 100644 --- a/src/checkqueue.h +++ b/src/checkqueue.h @@ -59,9 +59,6 @@ private: */ unsigned int nTodo; - //! Whether we're shutting down. - bool fQuit; - //! The maximum number of elements to be processed in one batch unsigned int nBatchSize; @@ -89,7 +86,7 @@ private: } // logically, the do loop starts here while (queue.empty()) { - if ((fMaster || fQuit) && nTodo == 0) { + if (fMaster && nTodo == 0) { nTotal--; bool fRet = fAllOk; // reset the status for new work later @@ -131,7 +128,7 @@ public: boost::mutex ControlMutex; //! 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 void Thread() |