File indexing completed on 2025-01-30 09:33:57
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014 #ifndef BOOST_ATOMIC_DETAIL_ONCE_FLAG_HPP_INCLUDED_
0015 #define BOOST_ATOMIC_DETAIL_ONCE_FLAG_HPP_INCLUDED_
0016
0017 #include <boost/atomic/detail/config.hpp>
0018 #include <boost/atomic/detail/aligned_variable.hpp>
0019 #include <boost/atomic/detail/core_operations.hpp>
0020 #include <boost/atomic/detail/header.hpp>
0021
0022 #ifdef BOOST_HAS_PRAGMA_ONCE
0023 #pragma once
0024 #endif
0025
0026 namespace boost {
0027 namespace atomics {
0028 namespace detail {
0029
0030 typedef atomics::detail::core_operations< 1u, false, false > once_flag_operations;
0031
0032 struct once_flag
0033 {
0034 BOOST_ATOMIC_DETAIL_ALIGNED_VAR(once_flag_operations::storage_alignment, once_flag_operations::storage_type, m_flag);
0035 };
0036
0037 }
0038 }
0039 }
0040
0041 #include <boost/atomic/detail/footer.hpp>
0042
0043 #endif