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_context.hpp 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // detail/thread_context.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_THREAD_CONTEXT_HPP
  11. #define ASIO_DETAIL_THREAD_CONTEXT_HPP
  12. #if defined(_MSC_VER) && (_MSC_VER >= 1200)
  13. # pragma once
  14. #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
  15. #include <climits>
  16. #include <cstddef>
  17. #include "asio/detail/call_stack.hpp"
  18. #include "asio/detail/push_options.hpp"
  19. namespace asio {
  20. namespace detail {
  21. class thread_info_base;
  22. // Base class for things that manage threads (scheduler, win_iocp_io_context).
  23. class thread_context
  24. {
  25. public:
  26. // Per-thread call stack to track the state of each thread in the context.
  27. typedef call_stack<thread_context, thread_info_base> thread_call_stack;
  28. };
  29. } // namespace detail
  30. } // namespace asio
  31. #include "asio/detail/pop_options.hpp"
  32. #endif // ASIO_DETAIL_THREAD_CONTEXT_HPP