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)
6 * Copyright (c) 2011 Helge Bahmann
7 * Copyright (c) 2013 Tim Blechmann
8 * Copyright (c) 2014, 2020 Andrey Semashev
11 * \file atomic/atomic_flag.hpp
13 * This header contains definition of \c atomic_flag.
16 #ifndef BOOST_ATOMIC_ATOMIC_FLAG_HPP_INCLUDED_
17 #define BOOST_ATOMIC_ATOMIC_FLAG_HPP_INCLUDED_
19 #include <boost/atomic/capabilities.hpp>
20 #include <boost/atomic/detail/config.hpp>
21 #include <boost/atomic/detail/atomic_flag_impl.hpp>
22 #include <boost/atomic/detail/header.hpp>
24 #ifdef BOOST_HAS_PRAGMA_ONCE
32 typedef atomics::detail::atomic_flag_impl< false > atomic_flag;
34 } // namespace atomics
36 using atomics::atomic_flag;
40 #include <boost/atomic/detail/footer.hpp>
42 #endif // BOOST_ATOMIC_ATOMIC_FLAG_HPP_INCLUDED_