Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-16 08:37:46

0001 //  Copyright (C) 2011-2013, 2016 Tim Blechmann
0002 //
0003 //  Distributed under the Boost Software License, Version 1.0. (See
0004 //  accompanying file LICENSE_1_0.txt or copy at
0005 //  http://www.boost.org/LICENSE_1_0.txt)
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 } // namespace detail
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 }}     // namespace boost::lockfree
0041 
0042 #endif /* BOOST_LOCKFREE_DETAIL_ATOMIC_HPP */