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

Function BitSetParallelFor

source/MRMesh/MRBitSetParallelFor.h:154–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152/// \return false if terminated by callback
153template <typename BS, typename F, typename ...Cb>
154inline auto BitSetParallelFor( const BS& bs, F && f, Cb&&... cb )
155{
156 return BitSetParallelForAll( bs, [&] ( auto bit ) { if ( bs.test( bit ) ) std::forward<F>( f )( bit ); }, std::forward<Cb>( cb )... );
157}
158
159/// executes given function f for every _set_ bit in bs IdRange or BitSet (bs) parallel threads,
160/// passing e.local() (evaluated once for each sub-range) as the second argument to f;

Callers 15

findIncidentFacesFunction · 0.85
appendGPUVisibleFacesFunction · 0.85
findVertsInViewportAreaFunction · 0.85
changeSurface_Method · 0.85
updateUVmap_Method · 0.85
updateRegion_Method · 0.85
updateRegionUVs_Method · 0.85
getVertColorsMethod · 0.85
getUVcoordsMethod · 0.85

Calls 2

BitSetParallelForAllFunction · 0.85
testMethod · 0.45

Tested by

no test coverage detected