| 44 | }; |
| 45 | |
| 46 | ThreadPool::ThreadPool(uint32_t numThreads) |
| 47 | { |
| 48 | if (numThreads == 0) |
| 49 | numThreads = std::thread::hardware_concurrency(); |
| 50 | |
| 51 | m_threads.resize(numThreads); |
| 52 | for (uint32_t i = 0; i < numThreads; ++i) |
| 53 | { |
| 54 | m_threads[i] = std::thread(StaticThreadProc, this); |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | ThreadPool::~ThreadPool() |
| 59 | { |
nothing calls this directly
no outgoing calls
no test coverage detected