blob: 6e8208d39ed098c010a0a5e31e17de3bdd00f8fd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// atomic.hpp ------------------------------------------------------------------------//
// Copyright 2021 Andrey Semashev
// Distributed under the Boost Software License, Version 1.0.
// See http://www.boost.org/LICENSE_1_0.txt
// See library home page at http://www.boost.org/libs/filesystem
//--------------------------------------------------------------------------------------//
#ifndef BOOST_FILESYSTEM_SRC_ATOMIC_REF_HPP_
#define BOOST_FILESYSTEM_SRC_ATOMIC_REF_HPP_
#include <boost/filesystem/config.hpp>
#if !defined(BOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF)
#include <atomic>
namespace atomic_ns = std;
#else // !defined(BOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF)
#include <boost/memory_order.hpp>
#include <boost/atomic/atomic_ref.hpp>
namespace atomic_ns = boost;
#endif // !defined(BOOST_FILESYSTEM_NO_CXX20_ATOMIC_REF)
#endif // BOOST_FILESYSTEM_SRC_ATOMIC_REF_HPP_
|