refactor
This commit is contained in:
@@ -57,6 +57,7 @@ auto tasks::schedule(task item) -> task_ptr {
|
|||||||
|
|
||||||
unique_mutex_lock lock(mutex_);
|
unique_mutex_lock lock(mutex_);
|
||||||
if (stop_requested_) {
|
if (stop_requested_) {
|
||||||
|
runnable.wait->set_result(false);
|
||||||
notify_.notify_all();
|
notify_.notify_all();
|
||||||
return runnable.wait;
|
return runnable.wait;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user