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

Method run

kernels/subdiv/tessellation_cache.cpp:296–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294 }
295
296 bool run ()
297 {
298 numFailed.store(0);
299
300 size_t numThreads = getNumberOfLogicalThreads();
301 barrier.init(numThreads+1);
302
303 /* create threads */
304 std::vector<thread_t> threads;
305 for (size_t i=0; i<numThreads; i++)
306 threads.push_back(createThread((thread_func)thread_alloc,this,0,i));
307
308 /* run test */
309 barrier.wait();
310 barrier.wait();
311
312 /* destroy threads */
313 for (size_t i=0; i<numThreads; i++)
314 join(threads[i]);
315
316 return numFailed == 0;
317 }
318 };
319
320 cache_regression_test cache_regression;

Callers

nothing calls this directly

Calls 7

createThreadFunction · 0.85
joinFunction · 0.85
storeMethod · 0.45
initMethod · 0.45
push_backMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected