MCPcopy Create free account
hub / github.com/ImageEngine/cortex / testParallelLRUCacheRecursion

Function testParallelLRUCacheRecursion

src/IECorePython/LRUCacheBinding.cpp:305–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305void testParallelLRUCacheRecursion( int numIterations, size_t numValues, int maxCost )
306{
307 ParallelTestCache &cache = recursiveCache<ParallelTestCache>();
308 cache.clear();
309 cache.setMaxCost( maxCost );
310 tbb::task_group_context taskGroupContext( tbb::task_group_context::isolated );
311 parallel_for( blocked_range<size_t>( 0, numIterations ), GetFromParallelRecursiveCache( cache, numValues ), taskGroupContext );
312}
313
314} // namespace
315

Callers

nothing calls this directly

Calls 2

clearMethod · 0.45

Tested by

no test coverage detected