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.

thread.hpp 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // detail/thread.hpp
  3. // ~~~~~~~~~~~~~~~~~
  4. //
  5. // Copyright (c) 2003-2019 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_THREAD_HPP
  11. #define ASIO_DETAIL_THREAD_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. # include "asio/detail/null_thread.hpp"
  18. #elif defined(ASIO_WINDOWS)
  19. # if defined(UNDER_CE)
  20. # include "asio/detail/wince_thread.hpp"
  21. # elif defined(ASIO_WINDOWS_APP)
  22. # include "asio/detail/winapp_thread.hpp"
  23. # else
  24. # include "asio/detail/win_thread.hpp"
  25. # endif
  26. #elif defined(ASIO_HAS_PTHREADS)
  27. # include "asio/detail/posix_thread.hpp"
  28. #elif defined(ASIO_HAS_STD_THREAD)
  29. # include "asio/detail/std_thread.hpp"
  30. #else
  31. # error Only Windows, POSIX and std::thread are supported!
  32. #endif
  33. namespace asio {
  34. namespace detail {
  35. #if !defined(ASIO_HAS_THREADS)
  36. typedef null_thread thread;
  37. #elif defined(ASIO_WINDOWS)
  38. # if defined(UNDER_CE)
  39. typedef wince_thread thread;
  40. # elif defined(ASIO_WINDOWS_APP)
  41. typedef winapp_thread thread;
  42. # else
  43. typedef win_thread thread;
  44. # endif
  45. #elif defined(ASIO_HAS_PTHREADS)
  46. typedef posix_thread thread;
  47. #elif defined(ASIO_HAS_STD_THREAD)
  48. typedef std_thread thread;
  49. #endif
  50. } // namespace detail
  51. } // namespace asio
  52. #endif // ASIO_DETAIL_THREAD_HPP