refactor
This commit is contained in:
@@ -150,13 +150,6 @@ void client_pool::pool::shutdown() {
|
|||||||
std::swap(pool_queues, pool_queues_);
|
std::swap(pool_queues, pool_queues_);
|
||||||
pool_lock.unlock();
|
pool_lock.unlock();
|
||||||
|
|
||||||
for (auto &entry : pool_queues) {
|
|
||||||
entry.second->shutdown = true;
|
|
||||||
|
|
||||||
mutex_lock lock(entry.second->mutex);
|
|
||||||
entry.second->notify.notify_all();
|
|
||||||
}
|
|
||||||
|
|
||||||
pool_queues.clear();
|
pool_queues.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user