One more build fix for non MSVC compilers.

llvm-svn: 335443
This commit is contained in:
Zachary Turner 2018-06-25 04:38:03 +00:00
parent ad45f93e89
commit eee66518af
1 changed files with 6 additions and 6 deletions

View File

@ -22,9 +22,9 @@ protected:
TEST_F(TaskQueueTest, OrderedFutures) {
ThreadPool TP(1);
TaskQueue TQ(TP);
std::atomic<int> X = 0;
std::atomic<int> Y = 0;
std::atomic<int> Z = 0;
std::atomic<int> X{ 0 };
std::atomic<int> Y{ 0 };
std::atomic<int> Z{ 0 };
std::mutex M1, M2, M3;
std::unique_lock<std::mutex> L1(M1);
@ -66,9 +66,9 @@ TEST_F(TaskQueueTest, OrderedFutures) {
TEST_F(TaskQueueTest, UnOrderedFutures) {
ThreadPool TP(1);
TaskQueue TQ(TP);
std::atomic<int> X = 0;
std::atomic<int> Y = 0;
std::atomic<int> Z = 0;
std::atomic<int> X{ 0 };
std::atomic<int> Y{ 0 };
std::atomic<int> Z{ 0 };
std::mutex M;
std::unique_lock<std::mutex> Lock(M);