• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
14 #ifndef BOOST_ATOMIC_IPC_ATOMIC_FLAG_HPP_INCLUDED_
15 #define BOOST_ATOMIC_IPC_ATOMIC_FLAG_HPP_INCLUDED_
16 
17 #include <boost/atomic/capabilities.hpp>
18 #include <boost/atomic/detail/config.hpp>
19 #include <boost/atomic/detail/atomic_flag_impl.hpp>
20 #include <boost/atomic/detail/header.hpp>
21 
22 #ifdef BOOST_HAS_PRAGMA_ONCE
23 #pragma once
24 #endif
25 
26 namespace boost {
27 namespace atomics {
28 
29 //! Atomic flag for inter-process communication
30 typedef atomics::detail::atomic_flag_impl< true > ipc_atomic_flag;
31 
32 } // namespace atomics
33 
34 using atomics::ipc_atomic_flag;
35 
36 } // namespace boost
37 
38 #include <boost/atomic/detail/footer.hpp>
39 
40 #endif // BOOST_ATOMIC_IPC_ATOMIC_FLAG_HPP_INCLUDED_
41