Use TestAtomic instead of std::atomic so the test can run in C++03
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@245415 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
faa9a31aef
commit
35a6c564bf
@ -16,10 +16,11 @@
|
|||||||
// void detach();
|
// void detach();
|
||||||
|
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <atomic>
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
std::atomic_bool done = ATOMIC_VAR_INIT(false);
|
#include "test_atomic.h"
|
||||||
|
|
||||||
|
AtomicBool done(false);
|
||||||
|
|
||||||
class G
|
class G
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user