atomic.hpp 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. #ifdef BOOST_HAS_PRAGMA_ONCE
  23. #pragma once
  24. #endif
  25. namespace boost {
  26. using atomics::atomic;
  27. using atomics::atomic_char;
  28. using atomics::atomic_uchar;
  29. using atomics::atomic_schar;
  30. using atomics::atomic_uint8_t;
  31. using atomics::atomic_int8_t;
  32. using atomics::atomic_ushort;
  33. using atomics::atomic_short;
  34. using atomics::atomic_uint16_t;
  35. using atomics::atomic_int16_t;
  36. using atomics::atomic_uint;
  37. using atomics::atomic_int;
  38. using atomics::atomic_uint32_t;
  39. using atomics::atomic_int32_t;
  40. using atomics::atomic_ulong;
  41. using atomics::atomic_long;
  42. using atomics::atomic_uint64_t;
  43. using atomics::atomic_int64_t;
  44. #ifdef BOOST_HAS_LONG_LONG
  45. using atomics::atomic_ullong;
  46. using atomics::atomic_llong;
  47. #endif
  48. using atomics::atomic_address;
  49. using atomics::atomic_bool;
  50. using atomics::atomic_wchar_t;
  51. #if !defined(BOOST_NO_CXX11_CHAR16_T)
  52. using atomics::atomic_char16_t;
  53. #endif
  54. #if !defined(BOOST_NO_CXX11_CHAR32_T)
  55. using atomics::atomic_char32_t;
  56. #endif
  57. using atomics::atomic_int_least8_t;
  58. using atomics::atomic_uint_least8_t;
  59. using atomics::atomic_int_least16_t;
  60. using atomics::atomic_uint_least16_t;
  61. using atomics::atomic_int_least32_t;
  62. using atomics::atomic_uint_least32_t;
  63. using atomics::atomic_int_least64_t;
  64. using atomics::atomic_uint_least64_t;
  65. using atomics::atomic_int_fast8_t;
  66. using atomics::atomic_uint_fast8_t;
  67. using atomics::atomic_int_fast16_t;
  68. using atomics::atomic_uint_fast16_t;
  69. using atomics::atomic_int_fast32_t;
  70. using atomics::atomic_uint_fast32_t;
  71. using atomics::atomic_int_fast64_t;
  72. using atomics::atomic_uint_fast64_t;
  73. using atomics::atomic_intmax_t;
  74. using atomics::atomic_uintmax_t;
  75. using atomics::atomic_size_t;
  76. using atomics::atomic_ptrdiff_t;
  77. #if defined(BOOST_HAS_INTPTR_T)
  78. using atomics::atomic_intptr_t;
  79. using atomics::atomic_uintptr_t;
  80. #endif
  81. } // namespace boost
  82. #endif // BOOST_ATOMIC_ATOMIC_HPP_INCLUDED_