mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-07 11:59:09 +00:00
One more build fix for non MSVC compilers.
llvm-svn: 335443
This commit is contained in:
parent
cd6da974e2
commit
044139ce11
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user