Settings: Make Settings::_terminated static. All threads and subchecks are terminated

This commit is contained in:
Daniel Marjamäki 2016-08-21 15:57:19 +02:00
parent d9ebdc6a10
commit a94628d8fc
2 changed files with 6 additions and 5 deletions

View File

@ -23,9 +23,10 @@
#include <fstream> #include <fstream>
#include <set> #include <set>
bool Settings::_terminated;
Settings::Settings() Settings::Settings()
: _terminated(false), : debug(false),
debug(false),
debugnormal(false), debugnormal(false),
debugwarnings(false), debugwarnings(false),
dump(false), dump(false),

View File

@ -51,7 +51,7 @@ private:
std::set<std::string> _enabled; std::set<std::string> _enabled;
/** @brief terminate checking */ /** @brief terminate checking */
bool _terminated; static bool _terminated;
public: public:
Settings(); Settings();
@ -98,12 +98,12 @@ public:
/** @brief Request termination of checking */ /** @brief Request termination of checking */
void terminate() { void terminate() {
_terminated = true; Settings::_terminated = true;
} }
/** @brief termination requested? */ /** @brief termination requested? */
bool terminated() const { bool terminated() const {
return _terminated; return Settings::_terminated;
} }
/** @brief Force checking the files with "too many" configurations (--force). */ /** @brief Force checking the files with "too many" configurations (--force). */