refactor
This commit is contained in:
@ -105,6 +105,7 @@ void tasks::stop() {
|
||||
|
||||
std::deque<scheduled_task> tasks;
|
||||
std::swap(tasks, tasks_);
|
||||
|
||||
notify_.notify_all();
|
||||
lock.unlock();
|
||||
|
||||
|
Reference in New Issue
Block a user