1 /*
2  * Distributed under the Boost Software License, Version 1.0.
3  * (See accompanying file LICENSE_1_0.txt or copy at
4  * http://www.boost.org/LICENSE_1_0.txt)
5  *
6  * Copyright (c) 2020 Andrey Semashev
7  */
8 /*!
9  * \file   atomic/detail/core_arch_operations.hpp
10  *
11  * This header defines core atomic operations, including the emulated version.
12  */
13 
14 #ifndef BOOST_ATOMIC_DETAIL_CORE_ARCH_OPERATIONS_HPP_INCLUDED_
15 #define BOOST_ATOMIC_DETAIL_CORE_ARCH_OPERATIONS_HPP_INCLUDED_
16 
17 #include <boost/atomic/detail/core_arch_operations_fwd.hpp>
18 #include <boost/atomic/detail/core_operations_emulated.hpp>
19 #include <boost/atomic/detail/config.hpp>
20 #include <boost/atomic/detail/platform.hpp>
21 #include <boost/atomic/detail/storage_traits.hpp>
22 
23 #if defined(BOOST_ATOMIC_DETAIL_CORE_ARCH_BACKEND_HEADER)
24 #include BOOST_ATOMIC_DETAIL_CORE_ARCH_BACKEND_HEADER(boost/atomic/detail/core_arch_ops_)
25 #endif
26 
27 #include <boost/atomic/detail/header.hpp>
28 
29 #ifdef BOOST_HAS_PRAGMA_ONCE
30 #pragma once
31 #endif
32 
33 namespace boost {
34 namespace atomics {
35 namespace detail {
36 
37 //! Default specialization that falls back to lock-based implementation
38 template< std::size_t Size, bool Signed, bool Interprocess >
39 struct core_arch_operations :
40     public core_operations_emulated< Size, storage_traits< Size >::alignment, Signed, Interprocess >
41 {
42 };
43 
44 } // namespace detail
45 } // namespace atomics
46 } // namespace boost
47 
48 #include <boost/atomic/detail/footer.hpp>
49 
50 #endif // BOOST_ATOMIC_DETAIL_CORE_ARCH_OPERATIONS_HPP_INCLUDED_
51