mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 16:56:45 +08:00
adjust test case
This commit is contained in:
parent
17e923e67a
commit
238f769f7a
@ -80,11 +80,11 @@ void benchmark() {
|
|||||||
x = datas[cnt];
|
x = datas[cnt];
|
||||||
}
|
}
|
||||||
// std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
// std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||||
}
|
if (x == 0) break; // quit
|
||||||
if (x == 0) break; // quit
|
if (x != -1) {
|
||||||
if (x != -1) {
|
seq.push_back(x);
|
||||||
seq.push_back(x);
|
++cnt;
|
||||||
++cnt;
|
}
|
||||||
}
|
}
|
||||||
std::this_thread::yield();
|
std::this_thread::yield();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user