From 5dda5d130a2c1878cd766fd570962613e0884f7e Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 15 Mar 2018 23:49:12 +1100 Subject: [PATCH] spinlock: reduce iterations for testing 4096 iterations should be enough to demonstrate any issues, but still execute quickly enough for everyday testing --- test/job/spinlock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/job/spinlock.cpp b/test/job/spinlock.cpp index 9c0a80a7..bb8523c3 100644 --- a/test/job/spinlock.cpp +++ b/test/job/spinlock.cpp @@ -48,7 +48,7 @@ main () if (std::thread::hardware_concurrency () < 2) { tap.skip ("n-way fight"); } else { - constexpr int iterations = 1 << 16; + constexpr int iterations = 1 << 12; util::job::flag start_flag; std::vector contestants;