mirror of
https://github.com/XRPLF/clio.git
synced 2026-04-29 15:37:53 +00:00
@@ -27,3 +27,10 @@ WorkQueue::WorkQueue(std::uint32_t numWorkers, uint32_t maxSize)
|
||||
while (--numWorkers)
|
||||
threads_.emplace_back([this] { ioc_.run(); });
|
||||
}
|
||||
|
||||
WorkQueue::~WorkQueue()
|
||||
{
|
||||
work_.reset();
|
||||
for (auto& thread : threads_)
|
||||
thread.join();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user