core_arch_operations.hpp 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. #ifndef BOOST_ATOMIC_DETAIL_CORE_ARCH_OPERATIONS_HPP_INCLUDED_
  14. #define BOOST_ATOMIC_DETAIL_CORE_ARCH_OPERATIONS_HPP_INCLUDED_
  15. #include <boost/atomic/detail/core_arch_operations_fwd.hpp>
  16. #include <boost/atomic/detail/core_operations_emulated.hpp>
  17. #include <boost/atomic/detail/config.hpp>
  18. #include <boost/atomic/detail/platform.hpp>
  19. #include <boost/atomic/detail/storage_traits.hpp>
  20. #if defined(BOOST_ATOMIC_DETAIL_CORE_ARCH_BACKEND_HEADER)
  21. #include BOOST_ATOMIC_DETAIL_CORE_ARCH_BACKEND_HEADER(boost/atomic/detail/core_arch_ops_)
  22. #endif
  23. #include <boost/atomic/detail/header.hpp>
  24. #ifdef BOOST_HAS_PRAGMA_ONCE
  25. #pragma once
  26. #endif
  27. namespace boost {
  28. namespace atomics {
  29. namespace detail {
  30. //! Default specialization that falls back to lock-based implementation
  31. template< std::size_t Size, bool Signed, bool Interprocess >
  32. struct core_arch_operations :
  33. public core_operations_emulated< Size, storage_traits< Size >::alignment, Signed, Interprocess >
  34. {
  35. };
  36. } // namespace detail
  37. } // namespace atomics
  38. } // namespace boost
  39. #include <boost/atomic/detail/footer.hpp>
  40. #endif // BOOST_ATOMIC_DETAIL_CORE_ARCH_OPERATIONS_HPP_INCLUDED_