threadpool: Don't wait on condition if pool has no workers
Pool creates new workers dynamically. However, it is possible for a pool to have no workers. If we want to free that pool, we don't want to wait on quit condition as it will never be signaled.
Showing
想要评论请 注册 或 登录