refactor
This commit is contained in:
parent
f0ddbe7a8c
commit
0e8824a8d2
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user