summaryrefslogtreecommitdiff
path: root/libstdc++/src/libstdc++.cpp
diff options
context:
space:
mode:
authorHans Boehm <hboehm@google.com>2014-08-14 15:26:03 -0700
committerHans Boehm <hboehm@google.com>2014-08-15 10:38:20 -0700
commit019d3958118b7dc3ec8444ad2accca50c268b737 (patch)
tree01809ecacf090063d43eab54039c97c567aaa1bc /libstdc++/src/libstdc++.cpp
parent4f85c6ffd31d1f8cc000ab326edd8edb7ecd55a9 (diff)
Have stdatomic.h punt to C++ atomic when possible
This is an alternate, somewhat simpler, fix that makes it safe to include both <atomic> and <stdatomic.h> from C++ code in either order. It means that C code consistently uses one implementation of atomics and C++ another. We still have to make sure that those two implementations interoperate correctly at runtime; in particular, any flavor of atomic object needs to be represented exactly like the underlying type, with the proper alignment constraint. Bug:17007799 Change-Id: Iffcfc5220d8fa150f89dd083a121b24d23f268fc
Diffstat (limited to 'libstdc++/src/libstdc++.cpp')
0 files changed, 0 insertions, 0 deletions