| 23 | // -------------------------------------------------------------------------------------------------------------------- |
| 24 | |
| 25 | ThreadPool::ThreadPool(int numThreads) |
| 26 | : mThreads(numThreads) |
| 27 | , mCancel(false) |
| 28 | , mReady(0) |
| 29 | , mCompleted(0) |
| 30 | , mJobsCompleted(0) |
| 31 | , mQuit(false) |
| 32 | , mJobGraph(nullptr) |
| 33 | { |
| 34 | for (auto i = 0; i < numThreads; ++i) |
| 35 | { |
| 36 | mThreads[i] = std::move(std::thread(&ThreadPool::threadFunc, this, i)); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | ThreadPool::~ThreadPool() |
| 41 | { |
nothing calls this directly
no outgoing calls
no test coverage detected