From 6628092384973a66591c688ad9d5bef383a2abe3 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Mon, 9 Sep 2024 20:25:40 -0700 Subject: [PATCH] Tinker with interleaveBoundedCyclicList --- InterleavingTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InterleavingTest.cpp b/InterleavingTest.cpp index 2acf76a..7e005fe 100644 --- a/InterleavingTest.cpp +++ b/InterleavingTest.cpp @@ -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; }