ipc_atomic_flag.hpp 978 B

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-2025 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. using ipc_atomic_flag = atomics::detail::atomic_flag_impl< true >;
  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_