core_operations.hpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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) 2014 Andrey Semashev
  7. */
  8. /*!
  9. * \file atomic/detail/core_operations.hpp
  10. *
  11. * This header defines core atomic operations.
  12. */
  13. #ifndef BOOST_ATOMIC_DETAIL_CORE_OPERATIONS_HPP_INCLUDED_
  14. #define BOOST_ATOMIC_DETAIL_CORE_OPERATIONS_HPP_INCLUDED_
  15. #include <boost/atomic/detail/config.hpp>
  16. #include <boost/atomic/detail/platform.hpp>
  17. #include <boost/atomic/detail/core_arch_operations.hpp>
  18. #include <boost/atomic/detail/core_operations_fwd.hpp>
  19. #if defined(BOOST_ATOMIC_DETAIL_CORE_BACKEND_HEADER)
  20. #include BOOST_ATOMIC_DETAIL_CORE_BACKEND_HEADER(boost/atomic/detail/core_ops_)
  21. #endif
  22. #include <boost/atomic/detail/header.hpp>
  23. #ifdef BOOST_HAS_PRAGMA_ONCE
  24. #pragma once
  25. #endif
  26. namespace boost {
  27. namespace atomics {
  28. namespace detail {
  29. //! Default specialization that falls back to architecture-specific implementation
  30. template< std::size_t Size, bool Signed, bool Interprocess >
  31. struct core_operations :
  32. public core_arch_operations< Size, Signed, Interprocess >
  33. {
  34. };
  35. } // namespace detail
  36. } // namespace atomics
  37. } // namespace boost
  38. #include <boost/atomic/detail/footer.hpp>
  39. #endif // BOOST_ATOMIC_DETAIL_CORE_OPERATIONS_HPP_INCLUDED_