MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / forAllRanged

Function forAllRanged

source/MRMesh/MRBitSetParallelFor.cpp:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27} // namespace
28
29void forAllRanged( const Range & bitRange, FunctionRef<void ( size_t, const Range & )> f )
30{
31 const auto blockRange = toBlockRange( bitRange );
32 tbb::parallel_for( blockRange, [&] ( const Range & subRange )
33 {
34 const auto bitSubRange = toBitSubRange( bitRange, blockRange, subRange );
35 for ( auto i = bitSubRange.begin(); i < bitSubRange.end(); ++i )
36 f( i, bitSubRange );
37 } );
38}
39
40void forAllRanged( const Range & bitRange, FunctionRef<void ( size_t, const Range &, void* )> f,
41 FunctionRef<void* ()> ctx )

Callers 1

ForAllRangedFunction · 0.85

Calls 7

toBlockRangeFunction · 0.85
toBitSubRangeFunction · 0.85
tryLockMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
loadMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected