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

Function getMaxNumThreads

kernels/common/device.cpp:341–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339 }
340
341 size_t getMaxNumThreads()
342 {
343 size_t maxNumThreads = 0;
344 for (std::map<Device*,size_t>::iterator i=g_num_threads_map.begin(); i != g_num_threads_map.end(); i++)
345 maxNumThreads = max(maxNumThreads, (*i).second);
346 if (maxNumThreads == 0)
347 maxNumThreads = std::numeric_limits<size_t>::max();
348 return maxNumThreads;
349 }
350
351 size_t getMaxCacheSize()
352 {

Callers 2

initTaskingSystemMethod · 0.85
exitTaskingSystemMethod · 0.85

Calls 3

maxFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected