mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-07 01:06:45 +08:00
adjust count of consumers
This commit is contained in:
parent
ff0dbc8e2e
commit
7e24273a64
@ -47,7 +47,7 @@ void Unit::test_inst(void) {
|
|||||||
|
|
||||||
void Unit::test_prod_cons_1vN(void) {
|
void Unit::test_prod_cons_1vN(void) {
|
||||||
::new (cq__) cq_t;
|
::new (cq__) cq_t;
|
||||||
std::thread consumers[1];
|
std::thread consumers[3];
|
||||||
std::atomic_int fini { 0 };
|
std::atomic_int fini { 0 };
|
||||||
capo::stopwatch<> sw;
|
capo::stopwatch<> sw;
|
||||||
constexpr static int loops = 10000000;
|
constexpr static int loops = 10000000;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user