Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 09:33:50

0001 /*
0002  * Distributed under the Boost Software License, Version 1.0.
0003  * (See accompanying file LICENSE_1_0.txt or copy at
0004  * http://www.boost.org/LICENSE_1_0.txt)
0005  *
0006  * Copyright (c) 2020 Andrey Semashev
0007  */
0008 /*!
0009  * \file   atomic/detail/core_arch_operations.hpp
0010  *
0011  * This header defines core atomic operations, including the emulated version.
0012  */
0013 
0014 #ifndef BOOST_ATOMIC_DETAIL_CORE_ARCH_OPERATIONS_HPP_INCLUDED_
0015 #define BOOST_ATOMIC_DETAIL_CORE_ARCH_OPERATIONS_HPP_INCLUDED_
0016 
0017 #include <boost/atomic/detail/core_arch_operations_fwd.hpp>
0018 #include <boost/atomic/detail/core_operations_emulated.hpp>
0019 #include <boost/atomic/detail/config.hpp>
0020 #include <boost/atomic/detail/platform.hpp>
0021 #include <boost/atomic/detail/storage_traits.hpp>
0022 
0023 #if defined(BOOST_ATOMIC_DETAIL_CORE_ARCH_BACKEND_HEADER)
0024 #include BOOST_ATOMIC_DETAIL_CORE_ARCH_BACKEND_HEADER(boost/atomic/detail/core_arch_ops_)
0025 #endif
0026 
0027 #include <boost/atomic/detail/header.hpp>
0028 
0029 #ifdef BOOST_HAS_PRAGMA_ONCE
0030 #pragma once
0031 #endif
0032 
0033 namespace boost {
0034 namespace atomics {
0035 namespace detail {
0036 
0037 //! Default specialization that falls back to lock-based implementation
0038 template< std::size_t Size, bool Signed, bool Interprocess >
0039 struct core_arch_operations :
0040     public core_operations_emulated< Size, storage_traits< Size >::alignment, Signed, Interprocess >
0041 {
0042 };
0043 
0044 } // namespace detail
0045 } // namespace atomics
0046 } // namespace boost
0047 
0048 #include <boost/atomic/detail/footer.hpp>
0049 
0050 #endif // BOOST_ATOMIC_DETAIL_CORE_ARCH_OPERATIONS_HPP_INCLUDED_