| 128 | } |
| 129 | |
| 130 | void threadPoolFunction(std::pair<TaskScheduler::ThreadPool*,size_t>* pair) |
| 131 | { |
| 132 | TaskScheduler::ThreadPool* pool = pair->first; |
| 133 | size_t threadIndex = pair->second; |
| 134 | delete pair; |
| 135 | pool->thread_loop(threadIndex); |
| 136 | } |
| 137 | |
| 138 | TaskScheduler::ThreadPool::ThreadPool(bool set_affinity) |
| 139 | : numThreads(0), numThreadsRunning(0), set_affinity(set_affinity), running(false) {} |
nothing calls this directly
no test coverage detected