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

Method add

common/tasking/taskschedulerinternal.cpp:193–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191 }
192
193 dll_export void TaskScheduler::ThreadPool::add(const Ref<TaskScheduler>& scheduler)
194 {
195 mutex.lock();
196 schedulers.push_back(scheduler);
197 mutex.unlock();
198 condition.notify_all();
199 }
200
201 dll_export void TaskScheduler::ThreadPool::remove(const Ref<TaskScheduler>& scheduler)
202 {

Callers 1

addSchedulerMethod · 0.45

Calls 4

lockMethod · 0.45
push_backMethod · 0.45
unlockMethod · 0.45
notify_allMethod · 0.45

Tested by

no test coverage detected