YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
atomic_flag.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#if YACLIB_FAULT_ATOMIC == 2
4
# include <
yaclib/fault/detail/atomic_flag.hpp
>
5
# include <
yaclib/fault/detail/fiber/atomic_flag.hpp
>
6
7
# include <atomic>
8
9
namespace
yaclib_std
{
10
11
using
atomic_flag =
yaclib::detail::AtomicFlag<yaclib::detail::fiber::AtomicFlag>
;
12
13
}
// namespace yaclib_std
14
#elif YACLIB_FAULT_ATOMIC == 1
15
# include <
yaclib/fault/detail/atomic_flag.hpp
>
16
17
# include <atomic>
18
19
namespace
yaclib_std
{
20
21
using
atomic_flag =
yaclib::detail::AtomicFlag<std::atomic_flag>
;
22
23
}
// namespace yaclib_std
24
#else
25
# include <atomic>
26
27
namespace
yaclib_std
{
28
29
using
std::atomic_flag;
30
31
}
// namespace yaclib_std
32
#endif
yaclib::detail::AtomicFlag
Definition
atomic_flag.hpp:10
atomic_flag.hpp
atomic_flag.hpp
yaclib_std
Definition
coro.hpp:47
include
yaclib_std
detail
atomic_flag.hpp
Generated by
1.9.8