fence_arch_operations.hpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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/fence_arch_operations.hpp
  10. *
  11. * This header defines architecture-specific fence atomic operations.
  12. */
  13. #ifndef BOOST_ATOMIC_DETAIL_FENCE_ARCH_OPERATIONS_HPP_INCLUDED_
  14. #define BOOST_ATOMIC_DETAIL_FENCE_ARCH_OPERATIONS_HPP_INCLUDED_
  15. #include <boost/atomic/detail/config.hpp>
  16. #include <boost/atomic/detail/platform.hpp>
  17. #if defined(BOOST_ATOMIC_DETAIL_CORE_ARCH_BACKEND_HEADER)
  18. #include BOOST_ATOMIC_DETAIL_CORE_ARCH_BACKEND_HEADER(boost/atomic/detail/fence_arch_ops_)
  19. #else
  20. #include <boost/atomic/detail/fence_operations_emulated.hpp>
  21. namespace boost {
  22. namespace atomics {
  23. namespace detail {
  24. typedef fence_operations_emulated fence_arch_operations;
  25. } // namespace detail
  26. } // namespace atomics
  27. } // namespace boost
  28. #endif
  29. #ifdef BOOST_HAS_PRAGMA_ONCE
  30. #pragma once
  31. #endif
  32. #endif // BOOST_ATOMIC_DETAIL_FENCE_ARCH_OPERATIONS_HPP_INCLUDED_