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
6
7# include <atomic>
8
9namespace yaclib_std {
10
11inline void atomic_thread_fence(std::memory_order /*order*/) noexcept {
12}
13
14inline void atomic_signal_fence(std::memory_order /*order*/) noexcept {
15}
16
17} // namespace yaclib_std
18
19#else
20# include <atomic>
21
22namespace yaclib_std {
23
24using std::atomic_signal_fence;
25using std::atomic_thread_fence;
26
27} // namespace yaclib_std
28#endif