Closed pgouv closed 1 year ago
Fix waiting for shutdown when pool is already shutdown
threads may terminate and call shutdown_conditional.signal before shutdown_conditional.wait. With this fix we check if queue is empty so there is no point in waiting.
Fix waiting for shutdown when pool is already shutdown
threads may terminate and call shutdown_conditional.signal before shutdown_conditional.wait. With this fix we check if queue is empty so there is no point in waiting.