From 9ec5a371f5c05fda8ddeac3470be6fc5c67d44e9 Mon Sep 17 00:00:00 2001 From: Determinant Date: Sun, 14 Apr 2019 21:56:10 -0400 Subject: fix item skipping bug in lock-free queue --- test/test_queue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/test_queue.cpp b/test/test_queue.cpp index 11699c1..5c32dac 100644 --- a/test/test_queue.cpp +++ b/test/test_queue.cpp @@ -69,7 +69,7 @@ void test_mpmc(int nproducers, int nconsumers, int nops, size_t burst_size) { std::vector ecs; std::atomic collected(0); ecs.resize(nconsumers); - q.set_capacity(65536 * nproducers); + q.set_capacity(65536); for (int i = 0; i < nconsumers; i++) { q.reg_handler(ecs[i], [&collected, burst_size](queue_t &q) { -- cgit v1.2.3-70-g09d2