aboutsummaryrefslogtreecommitdiff
path: root/src/scheduler.h
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2017-03-09 13:34:54 +0100
committerpracticalswift <practicalswift@users.noreply.github.com>2017-07-25 13:46:52 +0200
commit6e8c48dc593d8b6e5cebd15a980074715223b572 (patch)
tree7977c539a2e3a2d344d156fc53fde9848dc84ca1 /src/scheduler.h
parent0c70e845aa9277a4ceb8307f0ad8f1bf7511e3c8 (diff)
downloadbitcoin-6e8c48dc593d8b6e5cebd15a980074715223b572.tar.xz
Add const to methods that do not modify the object for which it is called
Diffstat (limited to 'src/scheduler.h')
-rw-r--r--src/scheduler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scheduler.h b/src/scheduler.h
index 0365d668b2..cc2f01f2ff 100644
--- a/src/scheduler.h
+++ b/src/scheduler.h
@@ -81,7 +81,7 @@ private:
int nThreadsServicingQueue;
bool stopRequested;
bool stopWhenEmpty;
- bool shouldStop() { return stopRequested || (stopWhenEmpty && taskQueue.empty()); }
+ bool shouldStop() const { return stopRequested || (stopWhenEmpty && taskQueue.empty()); }
};
/**