Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.7KB

  1. //
  2. // detail/fenced_block.hpp
  3. // ~~~~~~~~~~~~~~~~~~~~~~~
  4. //
  5. // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
  6. //
  7. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  8. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  9. //
  10. #ifndef ASIO_DETAIL_FENCED_BLOCK_HPP
  11. #define ASIO_DETAIL_FENCED_BLOCK_HPP
  12. #if defined(_MSC_VER) && (_MSC_VER >= 1200)
  13. # pragma once
  14. #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
  15. #include "asio/detail/config.hpp"
  16. #if !defined(ASIO_HAS_THREADS) \
  17. || defined(ASIO_DISABLE_FENCED_BLOCK)
  18. # include "asio/detail/null_fenced_block.hpp"
  19. #elif defined(__MACH__) && defined(__APPLE__)
  20. # include "asio/detail/macos_fenced_block.hpp"
  21. #elif defined(__sun)
  22. # include "asio/detail/solaris_fenced_block.hpp"
  23. #elif defined(__GNUC__) && defined(__arm__) \
  24. && !defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)
  25. # include "asio/detail/gcc_arm_fenced_block.hpp"
  26. #elif defined(__GNUC__) && (defined(__hppa) || defined(__hppa__))
  27. # include "asio/detail/gcc_hppa_fenced_block.hpp"
  28. #elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
  29. # include "asio/detail/gcc_x86_fenced_block.hpp"
  30. #elif defined(__GNUC__) \
  31. && ((__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)) \
  32. && !defined(__INTEL_COMPILER) && !defined(__ICL) \
  33. && !defined(__ICC) && !defined(__ECC) && !defined(__PATHSCALE__)
  34. # include "asio/detail/gcc_sync_fenced_block.hpp"
  35. #elif defined(ASIO_WINDOWS) && !defined(UNDER_CE)
  36. # include "asio/detail/win_fenced_block.hpp"
  37. #else
  38. # include "asio/detail/null_fenced_block.hpp"
  39. #endif
  40. namespace asio {
  41. namespace detail {
  42. #if !defined(ASIO_HAS_THREADS) \
  43. || defined(ASIO_DISABLE_FENCED_BLOCK)
  44. typedef null_fenced_block fenced_block;
  45. #elif defined(__MACH__) && defined(__APPLE__)
  46. typedef macos_fenced_block fenced_block;
  47. #elif defined(__sun)
  48. typedef solaris_fenced_block fenced_block;
  49. #elif defined(__GNUC__) && defined(__arm__) \
  50. && !defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)
  51. typedef gcc_arm_fenced_block fenced_block;
  52. #elif defined(__GNUC__) && (defined(__hppa) || defined(__hppa__))
  53. typedef gcc_hppa_fenced_block fenced_block;
  54. #elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
  55. typedef gcc_x86_fenced_block fenced_block;
  56. #elif defined(__GNUC__) \
  57. && ((__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)) \
  58. && !defined(__INTEL_COMPILER) && !defined(__ICL) \
  59. && !defined(__ICC) && !defined(__ECC) && !defined(__PATHSCALE__)
  60. typedef gcc_sync_fenced_block fenced_block;
  61. #elif defined(ASIO_WINDOWS) && !defined(UNDER_CE)
  62. typedef win_fenced_block fenced_block;
  63. #else
  64. typedef null_fenced_block fenced_block;
  65. #endif
  66. } // namespace detail
  67. } // namespace asio
  68. #endif // ASIO_DETAIL_FENCED_BLOCK_HPP