From 4e67eebb4f7c1e84d328c0e3ed5f01b53985f704 Mon Sep 17 00:00:00 2001 From: mutouyun Date: Thu, 22 Nov 2018 14:11:00 +0800 Subject: [PATCH] turn count of consumers to 3 --- test/test_circ_queue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_circ_queue.cpp b/test/test_circ_queue.cpp index 294c0a4..0f5ef08 100644 --- a/test/test_circ_queue.cpp +++ b/test/test_circ_queue.cpp @@ -37,7 +37,7 @@ void Unit::test_inst(void) { void Unit::test_producer(void) { ::new (cq__) cq_t; - std::thread consumers[1]; + std::thread consumers[3]; for (auto& c : consumers) { c = std::thread{[&c] {