Make the minimum items per thread explicit. Found some bugs, optional arguments are evil.

This commit is contained in:
Henrik Rydgård committed 2021-06-12 21:21:28 +02:00
1 parent 0fa27ff9d7
commit 3be5c7bd9a
12 files changed
+60 -44

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ public:
WaitableCounter *ParallelRangeLoopWaitable(ThreadManager *threadMan, const std::function<void(int, int)> &loop, int lower, int upper, int minSize);
// This one optimizes by running the remainder on the calling thread.
void ParallelRangeLoop(ThreadManager *threadMan, const std::function<void(int, int)> &loop, int lower, int upper, int minSize = -1);
void ParallelRangeLoop(ThreadManager *threadMan, const std::function<void(int, int)> &loop, int lower, int upper, int minSize);
// Common utilities for large (!) memory copies.
// Will only fall back to threads if it seems to make sense.