atomic.hpp 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. #ifndef BOOST_ATOMIC_ATOMIC_HPP_INCLUDED_
  16. #define BOOST_ATOMIC_ATOMIC_HPP_INCLUDED_
  17. #include <boost/atomic/capabilities.hpp>
  18. #include <boost/atomic/fences.hpp>
  19. #include <boost/atomic/atomic_flag.hpp>
  20. #include <boost/atomic/detail/atomic_template.hpp>
  21. #include <boost/atomic/detail/operations.hpp>
  22. #include <boost/atomic/detail/extra_operations.hpp>
  23. #if !defined(BOOST_ATOMIC_NO_FLOATING_POINT)
  24. #include <boost/atomic/detail/fp_operations.hpp>
  25. #include <boost/atomic/detail/extra_fp_operations.hpp>
  26. #endif
  27. #ifdef BOOST_HAS_PRAGMA_ONCE
  28. #pragma once
  29. #endif
  30. namespace boost {
  31. using atomics::atomic;
  32. using atomics::atomic_char;
  33. using atomics::atomic_uchar;
  34. using atomics::atomic_schar;
  35. using atomics::atomic_uint8_t;
  36. using atomics::atomic_int8_t;
  37. using atomics::atomic_ushort;
  38. using atomics::atomic_short;
  39. using atomics::atomic_uint16_t;
  40. using atomics::atomic_int16_t;
  41. using atomics::atomic_uint;
  42. using atomics::atomic_int;
  43. using atomics::atomic_uint32_t;
  44. using atomics::atomic_int32_t;
  45. using atomics::atomic_ulong;
  46. using atomics::atomic_long;
  47. using atomics::atomic_uint64_t;
  48. using atomics::atomic_int64_t;
  49. #ifdef BOOST_HAS_LONG_LONG
  50. using atomics::atomic_ullong;
  51. using atomics::atomic_llong;
  52. #endif
  53. using atomics::atomic_address;
  54. using atomics::atomic_bool;
  55. using atomics::atomic_wchar_t;
  56. #if !defined(BOOST_NO_CXX11_CHAR16_T)
  57. using atomics::atomic_char16_t;
  58. #endif
  59. #if !defined(BOOST_NO_CXX11_CHAR32_T)
  60. using atomics::atomic_char32_t;
  61. #endif
  62. using atomics::atomic_int_least8_t;
  63. using atomics::atomic_uint_least8_t;
  64. using atomics::atomic_int_least16_t;
  65. using atomics::atomic_uint_least16_t;
  66. using atomics::atomic_int_least32_t;
  67. using atomics::atomic_uint_least32_t;
  68. using atomics::atomic_int_least64_t;
  69. using atomics::atomic_uint_least64_t;
  70. using atomics::atomic_int_fast8_t;
  71. using atomics::atomic_uint_fast8_t;
  72. using atomics::atomic_int_fast16_t;
  73. using atomics::atomic_uint_fast16_t;
  74. using atomics::atomic_int_fast32_t;
  75. using atomics::atomic_uint_fast32_t;
  76. using atomics::atomic_int_fast64_t;
  77. using atomics::atomic_uint_fast64_t;
  78. using atomics::atomic_intmax_t;
  79. using atomics::atomic_uintmax_t;
  80. #if !defined(BOOST_ATOMIC_NO_FLOATING_POINT)
  81. using atomics::atomic_float_t;
  82. using atomics::atomic_double_t;
  83. using atomics::atomic_long_double_t;
  84. #endif
  85. using atomics::atomic_size_t;
  86. using atomics::atomic_ptrdiff_t;
  87. #if defined(BOOST_HAS_INTPTR_T)
  88. using atomics::atomic_intptr_t;
  89. using atomics::atomic_uintptr_t;
  90. #endif
  91. } // namespace boost
  92. #endif // BOOST_ATOMIC_ATOMIC_HPP_INCLUDED_