File indexing completed on 2025-09-16 08:37:46
0001
0002
0003
0004
0005
0006
0007 #ifndef BOOST_LOCKFREE_DETAIL_ATOMIC_HPP
0008 #define BOOST_LOCKFREE_DETAIL_ATOMIC_HPP
0009
0010 #if defined( BOOST_LOCKFREE_FORCE_BOOST_ATOMIC )
0011 # include <boost/atomic.hpp>
0012 #else
0013 # include <atomic>
0014 #endif
0015
0016 namespace boost { namespace lockfree {
0017 namespace detail {
0018
0019 #if defined( BOOST_LOCKFREE_FORCE_BOOST_ATOMIC )
0020 using boost::atomic;
0021 using boost::memory_order_acquire;
0022 using boost::memory_order_consume;
0023 using boost::memory_order_relaxed;
0024 using boost::memory_order_release;
0025 #else
0026 using std::atomic;
0027 using std::memory_order_acquire;
0028 using std::memory_order_consume;
0029 using std::memory_order_relaxed;
0030 using std::memory_order_release;
0031 #endif
0032
0033 }
0034 using detail::atomic;
0035 using detail::memory_order_acquire;
0036 using detail::memory_order_consume;
0037 using detail::memory_order_relaxed;
0038 using detail::memory_order_release;
0039
0040 }}
0041
0042 #endif