|
|
@ -232,8 +232,7 @@ TEST_F(End2endTest, ThreadStress) { |
|
|
|
common_.ResetStub(); |
|
|
|
common_.ResetStub(); |
|
|
|
std::vector<std::thread*> threads; |
|
|
|
std::vector<std::thread*> threads; |
|
|
|
for (int i = 0; i < kNumThreads; ++i) { |
|
|
|
for (int i = 0; i < kNumThreads; ++i) { |
|
|
|
threads.push_back( |
|
|
|
threads.push_back(new std::thread(SendRpc, common_.GetStub(), kNumRpcs)); |
|
|
|
new std::thread(SendRpc, common_.GetStub(), kNumRpcs)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
for (int i = 0; i < kNumThreads; ++i) { |
|
|
|
for (int i = 0; i < kNumThreads; ++i) { |
|
|
|
threads[i]->join(); |
|
|
|
threads[i]->join(); |
|
|
|