[libc++] Fix test broken in C++03 due to requiring C++11 features from vector
This commit is contained in:
parent
bee2c2708f
commit
2bbfa6b02b
|
@ -44,9 +44,9 @@ void helper() {
|
|||
int main(int, char**)
|
||||
{
|
||||
notReady = threadCount;
|
||||
std::vector<std::thread> threads;
|
||||
std::vector<std::thread> threads(threadCount);
|
||||
for (unsigned i = 0; i < threadCount; i++)
|
||||
threads.emplace_back(helper);
|
||||
threads[i] = std::thread(helper);
|
||||
{
|
||||
while (notReady > 0)
|
||||
std::this_thread::yield();
|
||||
|
|
Loading…
Reference in New Issue