diff options
| author | MarcoFalke <[email protected]> | 2020-05-28 08:43:25 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2020-05-28 19:28:21 -0400 |
| commit | fac43f9889f500bcb62d830c030dec42fe791031 (patch) | |
| tree | 143e5cfafa4a2850d16af163559c86da521c5e70 /src/scheduler.cpp | |
| parent | doc: Remove unused documentation about unimplemented features (diff) | |
| download | discoin-fac43f9889f500bcb62d830c030dec42fe791031.tar.xz discoin-fac43f9889f500bcb62d830c030dec42fe791031.zip | |
scheduler: Replace stop(true) with StopWhenDrained()
This helps understanding the code at the call site without having to
look up the name of the argument or the default value.
Diffstat (limited to 'src/scheduler.cpp')
| -rw-r--r-- | src/scheduler.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/scheduler.cpp b/src/scheduler.cpp index 8f69bc31b..c5d1788f7 100644 --- a/src/scheduler.cpp +++ b/src/scheduler.cpp @@ -68,18 +68,6 @@ void CScheduler::serviceQueue() newTaskScheduled.notify_one(); } -void CScheduler::stop(bool drain) -{ - { - LOCK(newTaskMutex); - if (drain) - stopWhenEmpty = true; - else - stopRequested = true; - } - newTaskScheduled.notify_all(); -} - void CScheduler::schedule(CScheduler::Function f, std::chrono::system_clock::time_point t) { { |