| 86 | } |
| 87 | |
| 88 | void AsyncWorkQueue::shutdown() |
| 89 | { |
| 90 | std::unique_lock<std::mutex> lock(m_mutex); |
| 91 | serverAssert(!GlobalLocksAcquired()); |
| 92 | m_fQuitting = true; |
| 93 | m_cvWakeup.notify_all(); |
| 94 | lock.unlock(); |
| 95 | |
| 96 | for (auto &thread : m_vecthreads) |
| 97 | thread.join(); |
| 98 | } |
| 99 | |
| 100 | void AsyncWorkQueue::abandonThreads() |
| 101 | { |
no test coverage detected