Simplifiy WaitableCounter. Fixes it on Mac/ARM.

Not completely sure why it didn't work before...
This commit is contained in:
Henrik Rydgård
2021-06-12 23:08:07 +02:00
parent 50d9d7ea6f
commit ac9cc26a6d
2 changed files with 14 additions and 9 deletions
+1
View File
@@ -53,6 +53,7 @@ WaitableCounter *ParallelRangeLoopWaitable(ThreadManager *threadMan, const std::
// Remember that stragglers are done on the current thread
// so we don't round up.
numTasks = (int)(totalFrac / delta);
printf("numTasks: %d\n", numTasks);
WaitableCounter *waitableCounter = new WaitableCounter(numTasks);
int64_t counter = (int64_t)lower << fractionalBits;