see #2: update std::atomic and memory model

This commit is contained in:
Changkun Ou
2019-07-18 17:22:23 +02:00
parent 5e9c33002a
commit 6062a58161
6 changed files with 223 additions and 8 deletions

View File

@@ -0,0 +1,12 @@
#include <atomic>
#include <iostream>
struct A {
float x;
int y;
long long z;
};
std::atomic<A> a;
std::cout << std::boolalpha << a.is_lock_free() << std::endl;
return 0;
}