MCPcopy Create free account
hub / github.com/RenderKit/embree / ~ThreadPool

Method ~ThreadPool

common/tasking/taskschedulerinternal.cpp:180–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178 }
179
180 TaskScheduler::ThreadPool::~ThreadPool()
181 {
182 /* leave all taskschedulers */
183 mutex.lock();
184 numThreadsRunning = 0;
185 mutex.unlock();
186 condition.notify_all();
187
188 /* wait for threads to terminate */
189 for (size_t i=0; i<threads.size(); i++)
190 embree::join(threads[i]);
191 }
192
193 dll_export void TaskScheduler::ThreadPool::add(const Ref<TaskScheduler>& scheduler)
194 {

Callers

nothing calls this directly

Calls 5

joinFunction · 0.85
lockMethod · 0.45
unlockMethod · 0.45
notify_allMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected