YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
atomic_fence.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#if YACLIB_FAULT_ATOMIC_FENCE == 2
4
5
# include <
yaclib/fault/inject.hpp
>
6
7
# include <atomic>
8
9
namespace
yaclib_std
{
10
11
inline
void
atomic_thread_fence(std::memory_order
/*order*/
)
noexcept
{
12
}
13
14
inline
void
atomic_signal_fence(std::memory_order
/*order*/
)
noexcept
{
15
}
16
17
}
// namespace yaclib_std
18
19
#else
20
# include <atomic>
21
22
namespace
yaclib_std
{
23
24
using
std::atomic_signal_fence;
25
using
std::atomic_thread_fence;
26
27
}
// namespace yaclib_std
28
#endif
inject.hpp
yaclib_std
Definition
coro.hpp:47
include
yaclib_std
detail
atomic_fence.hpp
Generated by
1.9.8