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];
|
||||
}
|
||||
// std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||
}
|
||||
if (x == 0) break; // quit
|
||||
if (x != -1) {
|
||||
seq.push_back(x);
|
||||
++cnt;
|
||||
if (x == 0) break; // quit
|
||||
if (x != -1) {
|
||||
seq.push_back(x);
|
||||
++cnt;
|
||||
}
|
||||
}
|
||||
std::this_thread::yield();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user