Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
atomic.h
Go to the documentation of this file.
1 
18 #ifndef ION_PORT_ATOMIC_H_
19 #define ION_PORT_ATOMIC_H_
20 
23 #if defined(ION_PLATFORM_QNX) || \
24  (defined(ION_PLATFORM_NACL) && \
25  !(defined(ION_ARCH_ARM) || defined(__clang__)))
26 # include <cstdatomic>
27 
32 namespace std {
33 template<typename _Tp>
34 void atomic<_Tp*>::store(_Tp* __v, memory_order __m) volatile {
35  atomic_address::store(__v, __m);
36 }
37 } // namespace std
38 
39 #else
40 # include <atomic>
41 #endif
42 
43 #endif // ION_PORT_ATOMIC_H_