tests/cpp11_condition_variable: reduce thread number
This commit is contained in:
parent
eb9d2fb5b4
commit
235e024483
@ -79,7 +79,6 @@ int main() {
|
|||||||
thread t1(waits);
|
thread t1(waits);
|
||||||
thread t2(waits);
|
thread t2(waits);
|
||||||
thread t3(waits);
|
thread t3(waits);
|
||||||
thread t4(waits);
|
|
||||||
thread([&m, &cv] {
|
thread([&m, &cv] {
|
||||||
unique_lock<mutex> lk(m);
|
unique_lock<mutex> lk(m);
|
||||||
cv.notify_all();
|
cv.notify_all();
|
||||||
@ -87,7 +86,6 @@ int main() {
|
|||||||
t1.join();
|
t1.join();
|
||||||
t2.join();
|
t2.join();
|
||||||
t3.join();
|
t3.join();
|
||||||
t4.join();
|
|
||||||
}
|
}
|
||||||
puts("Done\n");
|
puts("Done\n");
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user