| 30 | #define ENABLE_MULTI_THREADING |
| 31 | |
| 32 | ThreadPool::ThreadPool() |
| 33 | { |
| 34 | m_activeThreads = 0; |
| 35 | |
| 36 | #ifdef ENABLE_MULTI_THREADING |
| 37 | Num_Threads = std::thread::hardware_concurrency(); |
| 38 | bExiting = false; |
| 39 | for (int ii = 0; ii < Num_Threads; ii++) |
| 40 | { |
| 41 | Pool.push_back(std::thread(&ThreadPool::JobStealerLoop, GetThreadPool())); |
| 42 | } |
| 43 | #endif |
| 44 | } |
| 45 | |
| 46 | ThreadPool::~ThreadPool() |
| 47 | { |
nothing calls this directly
no test coverage detected