From 8976cb6ce26ed3ea08a25d754e417a3ee69ea6d0 Mon Sep 17 00:00:00 2001 From: Pablo Duboue Date: Tue, 26 Dec 2023 13:53:54 -0800 Subject: [PATCH] changes from review --- tests/spsc/priority_queue.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/tests/spsc/priority_queue.cpp b/tests/spsc/priority_queue.cpp index e3a7fb3..2bbb8a4 100644 --- a/tests/spsc/priority_queue.cpp +++ b/tests/spsc/priority_queue.cpp @@ -123,15 +123,10 @@ TEST_CASE("Multithreaded read/write", "[pq_multithreaded]") { It needs to keep track which values were already read, it does that with the help of the `consumed` Boolean vector. - - As an optimization, the variable `start` contains the longest prefix of - `consumed` that is all true. */ std::vector consumed(written.size(), false); uint64_t value1, value2; uint8_t prio1, prio2; - size_t start = 0; - bool all_consumed; bool found; for(size_t idx=0; idx