forked from OSchip/llvm-project
parent
1c5fd604b3
commit
2e38cb19a4
|
@ -83,7 +83,7 @@ public:
|
||||||
sys::MemoryFence();
|
sys::MemoryFence();
|
||||||
InitFlag = 2;
|
InitFlag = 2;
|
||||||
} else if (OldFlag == 1)
|
} else if (OldFlag == 1)
|
||||||
while (OldFlag == 1) ;
|
while (InitFlag == 1) ;
|
||||||
|
|
||||||
return *static_cast<C*>(Ptr);
|
return *static_cast<C*>(Ptr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue