shutdown fix
This commit is contained in:
@@ -36,11 +36,15 @@ client_pool::pool::work_queue::work_queue() {
|
||||
}
|
||||
|
||||
client_pool::pool::work_queue::~work_queue() {
|
||||
shutdown = true;
|
||||
|
||||
unique_mutex_lock lock(mutex);
|
||||
notify.notify_all();
|
||||
lock.unlock();
|
||||
|
||||
if (thread->joinable()) {
|
||||
thread->join();
|
||||
}
|
||||
|
||||
thread.reset();
|
||||
}
|
||||
|
||||
void client_pool::pool::work_queue::work_thread() {
|
||||
|
Reference in New Issue
Block a user