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

Function BitSetParallelForAll

source/MRMesh/MRBitSetParallelFor.h:133–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131/// \return false if terminated by callback
132template <typename BS, typename F, typename ...Cb>
133inline auto BitSetParallelForAll( const BS & bs, F && f, Cb&&... cb )
134{
135 return BitSetParallel::ForAllRanged( bs, [&] ( auto bit, auto && ) { std::forward<F>( f )( bit ); }, std::forward<Cb>( cb )... );
136}
137
138/// executes given function f for each index in IdRange or BitSet (bs) in parallel threads
139/// passing e.local() (evaluated once for each sub-range) as the second argument to f;

Callers 15

TESTFunction · 0.85
TESTFunction · 0.85
calcSelfIntersectionsMethod · 0.85
runMethod · 0.85
resizeMethod · 0.85
setupNeighborsMethod · 0.85
makeCloseToMeshVolumeFunction · 0.85

Calls 1

ForAllRangedFunction · 0.85

Tested by 2

TESTFunction · 0.68
TESTFunction · 0.68