Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 09:43:52

0001 /*
0002  * Distributed under the Boost Software License, Version 1.0.
0003  * (See accompanying file LICENSE_1_0.txt or copy at
0004  * http://www.boost.org/LICENSE_1_0.txt)
0005  *
0006  * Copyright (c) 2011 Helge Bahmann
0007  * Copyright (c) 2013 Tim Blechmann
0008  * Copyright (c) 2014, 2020 Andrey Semashev
0009  */
0010 /*!
0011  * \file   atomic/atomic_flag.hpp
0012  *
0013  * This header contains definition of \c atomic_flag.
0014  */
0015 
0016 #ifndef BOOST_ATOMIC_ATOMIC_FLAG_HPP_INCLUDED_
0017 #define BOOST_ATOMIC_ATOMIC_FLAG_HPP_INCLUDED_
0018 
0019 #include <boost/atomic/capabilities.hpp>
0020 #include <boost/atomic/detail/config.hpp>
0021 #include <boost/atomic/detail/atomic_flag_impl.hpp>
0022 #include <boost/atomic/detail/header.hpp>
0023 
0024 #ifdef BOOST_HAS_PRAGMA_ONCE
0025 #pragma once
0026 #endif
0027 
0028 namespace boost {
0029 namespace atomics {
0030 
0031 //! Atomic flag
0032 typedef atomics::detail::atomic_flag_impl< false > atomic_flag;
0033 
0034 } // namespace atomics
0035 
0036 using atomics::atomic_flag;
0037 
0038 } // namespace boost
0039 
0040 #include <boost/atomic/detail/footer.hpp>
0041 
0042 #endif // BOOST_ATOMIC_ATOMIC_FLAG_HPP_INCLUDED_