[libcxx testing] Fix bot failure in my last commit

This commit is contained in:
David Zarzycki 2020-06-03 11:23:27 -04:00
parent 2cc77b2b8a
commit e25f01be0c
1 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@
#include <mutex>
#include <thread>
#include <vector>
#include <atomic>
#include <cassert>
#include "test_macros.h"
@ -45,7 +46,7 @@ int main(int, char**)
notReady = threadCount;
std::vector<std::thread> threads;
for (unsigned i = 0; i < threadCount; i++)
threads.push_back(std::thread(helper));
threads.emplace_back(helper);
{
while (notReady > 0)
std::this_thread::yield();