Settings: Make Settings::_terminated static. All threads and subchecks are terminated
This commit is contained in:
parent
d9ebdc6a10
commit
a94628d8fc
|
@ -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),
|
||||||
|
|
|
@ -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). */
|
||||||
|
|
Loading…
Reference in New Issue