Switch to unified view
a/src/utils/cancelcheck.h | b/src/utils/cancelcheck.h | ||
---|---|---|---|
... |
... |
||
37 | */ |
37 | */ |
38 | class CancelExcept {}; |
38 | class CancelExcept {}; |
39 | 39 | ||
40 | class CancelCheck { |
40 | class CancelCheck { |
41 | public: |
41 | public: |
42 | static CancelCheck& instance() {
|
42 | static CancelCheck& instance();
|
43 | static CancelCheck ck; |
||
44 | return ck; |
||
45 | } |
||
46 | void setCancel(bool on = true) { |
43 | void setCancel(bool on = true) { |
47 | cancelRequested = on; |
44 | cancelRequested = on; |
48 | } |
45 | } |
49 | void checkCancel() { |
46 | void checkCancel() { |
50 | if (cancelRequested) { |
47 | if (cancelRequested) { |