mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-07 01:06:45 +08:00
turn count of consumers to 3
This commit is contained in:
parent
526f63943f
commit
4e67eebb4f
@ -37,7 +37,7 @@ void Unit::test_inst(void) {
|
|||||||
|
|
||||||
void Unit::test_producer(void) {
|
void Unit::test_producer(void) {
|
||||||
::new (cq__) cq_t;
|
::new (cq__) cq_t;
|
||||||
std::thread consumers[1];
|
std::thread consumers[3];
|
||||||
|
|
||||||
for (auto& c : consumers) {
|
for (auto& c : consumers) {
|
||||||
c = std::thread{[&c] {
|
c = std::thread{[&c] {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user