ipc_atomic_flag.hpp 973 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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/ipc_atomic_flag.hpp
  10. *
  11. * This header contains definition of \c ipc_atomic_flag.
  12. */
  13. #ifndef BOOST_ATOMIC_IPC_ATOMIC_FLAG_HPP_INCLUDED_
  14. #define BOOST_ATOMIC_IPC_ATOMIC_FLAG_HPP_INCLUDED_
  15. #include <boost/atomic/capabilities.hpp>
  16. #include <boost/atomic/detail/config.hpp>
  17. #include <boost/atomic/detail/atomic_flag_impl.hpp>
  18. #include <boost/atomic/detail/header.hpp>
  19. #ifdef BOOST_HAS_PRAGMA_ONCE
  20. #pragma once
  21. #endif
  22. namespace boost {
  23. namespace atomics {
  24. //! Atomic flag for inter-process communication
  25. typedef atomics::detail::atomic_flag_impl< true > ipc_atomic_flag;
  26. } // namespace atomics
  27. using atomics::ipc_atomic_flag;
  28. } // namespace boost
  29. #include <boost/atomic/detail/footer.hpp>
  30. #endif // BOOST_ATOMIC_IPC_ATOMIC_FLAG_HPP_INCLUDED_