Contemplating this <atomic> reorganization...

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@115087 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Howard Hinnant
2010-09-29 21:20:03 +00:00
parent 5b6af69387
commit 767ae2b483
2 changed files with 201 additions and 38 deletions

View File

@@ -19,7 +19,7 @@
int main()
{
std::atomic_flag f = ATOMIC_FLAG_INIT;
std::atomic_flag f;
assert(f.test_and_set() == 0);
assert(f.test_and_set() == 1);
}