Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/MRMesh/MRBitSetParallelFor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void forAllRanged( const Range & bitRange, FunctionRef<void ( size_t, const Rang
}

bool forAllRanged( const Range & bitRange, FunctionRef<void ( size_t, const Range &, void* )> f,
FunctionRef<void* ()> ctx, ProgressCallback progressCb, size_t reportProgressEveryBit )
FunctionRef<void* ()> ctx, const ProgressCallback& progressCb, size_t reportProgressEveryBit )
{
if ( !progressCb )
{
Expand Down
2 changes: 1 addition & 1 deletion source/MRMesh/MRBitSetParallelFor.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ MRMESH_API void forAllRanged( const Range & bitRange, FunctionRef<void ( size_t,
FunctionRef<void* ()> ctx );

MRMESH_API bool forAllRanged( const Range & bitRange, FunctionRef<void ( size_t, const Range &, void* )> f,
FunctionRef<void* ()> ctx, ProgressCallback progressCb, size_t reportProgressEveryBit = 1024 );
FunctionRef<void* ()> ctx, const ProgressCallback& progressCb, size_t reportProgressEveryBit = 1024 );

template <typename BS, typename F, typename ...Cb>
auto ForAllRanged( const BS & bs, F && f, Cb && ... cb )
Expand Down
2 changes: 1 addition & 1 deletion source/MRMesh/MRParallelFor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void parallelFor( size_t begin, size_t end, FunctionRef<void ( size_t, void* )>
}

bool parallelFor( size_t begin, size_t end, FunctionRef<void ( size_t, void* )> f, FunctionRef<void* ()> ctx,
ProgressCallback cb, size_t reportProgressEvery )
const ProgressCallback& cb, size_t reportProgressEvery )
{
if ( !cb )
{
Expand Down
2 changes: 1 addition & 1 deletion source/MRMesh/MRParallelFor.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ MRMESH_API void parallelFor( size_t begin, size_t end, FunctionRef<void ( size_t
MRMESH_API void parallelFor( size_t begin, size_t end, FunctionRef<void ( size_t, void* )> f, FunctionRef<void* ()> ctx );

MRMESH_API bool parallelFor( size_t begin, size_t end, FunctionRef<void ( size_t, void* )> f, FunctionRef<void* ()> ctx,
ProgressCallback cb, size_t reportProgressEvery = 1024 );
const ProgressCallback& cb, size_t reportProgressEvery = 1024 );

/// executes given function f for each span element [begin, end);
/// optional parameters after f: ProgressCallback cb, size_t reportProgressEvery = 1024 for periodic progress report
Expand Down
Loading