Tinker with interleaveBoundedCyclicList

This commit is contained in:
2024-09-09 20:25:40 -07:00
parent a0a4f1afea
commit 6628092384

View File

@@ -51,12 +51,12 @@ void interleaveBoundedCyclicList(void **jobs, bool (*step)(void *), int count) {
return;
}
constexpr int kConcurrent = 16;
constexpr int kConcurrent = 32;
void *inProgress[kConcurrent];
int nextJob[kConcurrent];
int started = std::min(kConcurrent, count);
for (int i = 0; i < kConcurrent; i++) {
for (int i = 0; i < started; i++) {
inProgress[i] = jobs[i];
nextJob[i] = i + 1;
}