MCPcopy Create free account
hub / github.com/RenderKit/embree / threadPoolFunction

Function threadPoolFunction

common/tasking/taskschedulerinternal.cpp:130–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {}

Callers

nothing calls this directly

Calls 1

thread_loopMethod · 0.80

Tested by

no test coverage detected