scheduler: process_one_task

This commit is contained in:
2018-12-17 13:03:17 +07:00
parent 3f7ceec4b7
commit 5dfcf5911c
4 changed files with 29 additions and 2 deletions

View File

@@ -277,7 +277,7 @@ namespace jobber_hpp
tasks_.emplace_back(priority, std::move(task));
std::push_heap(tasks_.begin(), tasks_.end());
++active_task_count_;
cond_var_.notify_all();
cond_var_.notify_one();
}
inline jobber::task_ptr jobber::pop_task_() noexcept {