wait for 5s
This commit is contained in:
@@ -75,7 +75,7 @@ void client_pool::pool::work_queue::work_thread() {
|
||||
while (not shutdown) {
|
||||
lock.lock();
|
||||
if (actions.empty()) {
|
||||
notify.wait(lock);
|
||||
notify.wait_for(lock, std::chrono::seconds(5U));
|
||||
unlock_and_notify();
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user