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