1 | /* |
2 | * Distributed under the Boost Software License, Version 1.0. |
3 | * (See accompanying file LICENSE_1_0.txt or copy at |
4 | * http://www.boost.org/LICENSE_1_0.txt) |
5 | * |
6 | * Copyright (c) 2011 Helge Bahmann |
7 | * Copyright (c) 2013 Tim Blechmann |
8 | * Copyright (c) 2014 Andrey Semashev |
9 | */ |
10 | /*! |
11 | * \file atomic/atomic.hpp |
12 | * |
13 | * This header contains definition of \c atomic template and \c atomic_flag. |
14 | */ |
15 | |
16 | #ifndef BOOST_ATOMIC_ATOMIC_HPP_INCLUDED_ |
17 | #define BOOST_ATOMIC_ATOMIC_HPP_INCLUDED_ |
18 | |
19 | #include <boost/atomic/capabilities.hpp> |
20 | #include <boost/atomic/fences.hpp> |
21 | #include <boost/atomic/atomic_flag.hpp> |
22 | #include <boost/atomic/detail/atomic_template.hpp> |
23 | #include <boost/atomic/detail/operations.hpp> |
24 | |
25 | #ifdef BOOST_HAS_PRAGMA_ONCE |
26 | #pragma once |
27 | #endif |
28 | |
29 | namespace boost { |
30 | |
31 | using atomics::atomic; |
32 | |
33 | using atomics::atomic_char; |
34 | using atomics::atomic_uchar; |
35 | using atomics::atomic_schar; |
36 | using atomics::atomic_uint8_t; |
37 | using atomics::atomic_int8_t; |
38 | using atomics::atomic_ushort; |
39 | using atomics::atomic_short; |
40 | using atomics::atomic_uint16_t; |
41 | using atomics::atomic_int16_t; |
42 | using atomics::atomic_uint; |
43 | using atomics::atomic_int; |
44 | using atomics::atomic_uint32_t; |
45 | using atomics::atomic_int32_t; |
46 | using atomics::atomic_ulong; |
47 | using atomics::atomic_long; |
48 | using atomics::atomic_uint64_t; |
49 | using atomics::atomic_int64_t; |
50 | #ifdef BOOST_HAS_LONG_LONG |
51 | using atomics::atomic_ullong; |
52 | using atomics::atomic_llong; |
53 | #endif |
54 | using atomics::atomic_address; |
55 | using atomics::atomic_bool; |
56 | using atomics::atomic_wchar_t; |
57 | #if !defined(BOOST_NO_CXX11_CHAR16_T) |
58 | using atomics::atomic_char16_t; |
59 | #endif |
60 | #if !defined(BOOST_NO_CXX11_CHAR32_T) |
61 | using atomics::atomic_char32_t; |
62 | #endif |
63 | |
64 | using atomics::atomic_int_least8_t; |
65 | using atomics::atomic_uint_least8_t; |
66 | using atomics::atomic_int_least16_t; |
67 | using atomics::atomic_uint_least16_t; |
68 | using atomics::atomic_int_least32_t; |
69 | using atomics::atomic_uint_least32_t; |
70 | using atomics::atomic_int_least64_t; |
71 | using atomics::atomic_uint_least64_t; |
72 | using atomics::atomic_int_fast8_t; |
73 | using atomics::atomic_uint_fast8_t; |
74 | using atomics::atomic_int_fast16_t; |
75 | using atomics::atomic_uint_fast16_t; |
76 | using atomics::atomic_int_fast32_t; |
77 | using atomics::atomic_uint_fast32_t; |
78 | using atomics::atomic_int_fast64_t; |
79 | using atomics::atomic_uint_fast64_t; |
80 | using atomics::atomic_intmax_t; |
81 | using atomics::atomic_uintmax_t; |
82 | |
83 | using atomics::atomic_size_t; |
84 | using atomics::atomic_ptrdiff_t; |
85 | |
86 | #if defined(BOOST_HAS_INTPTR_T) |
87 | using atomics::atomic_intptr_t; |
88 | using atomics::atomic_uintptr_t; |
89 | #endif |
90 | |
91 | } // namespace boost |
92 | |
93 | #endif // BOOST_ATOMIC_ATOMIC_HPP_INCLUDED_ |
94 | |