refactor
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
Scott E. Graves 2024-12-07 07:21:15 -06:00
parent 0e8824a8d2
commit 031682051f

View File

@ -50,7 +50,7 @@ auto tasks::task_wait::wait() const -> bool {
auto tasks::schedule(task item) -> task_ptr {
++count_;
while (not stop_requested_ && (count_ >= task_threads_.size())) {
std::this_thread::sleep_for(10ms);
std::this_thread::sleep_for(50ms);
}
scheduled_task runnable{item};
@ -64,8 +64,6 @@ auto tasks::schedule(task item) -> task_ptr {
tasks_.push_back(runnable);
notify_.notify_all();
lock.unlock();
return runnable.wait;
}