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.

handler_continuation_hook.hpp 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // handler_continuation_hook.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_HANDLER_CONTINUATION_HOOK_HPP
  11. #define ASIO_HANDLER_CONTINUATION_HOOK_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. #include "asio/detail/push_options.hpp"
  17. namespace asio {
  18. /// Default continuation function for handlers.
  19. /**
  20. * Asynchronous operations may represent a continuation of the asynchronous
  21. * control flow associated with the current handler. The implementation can use
  22. * this knowledge to optimise scheduling of the handler.
  23. *
  24. * Implement asio_handler_is_continuation for your own handlers to indicate
  25. * when a handler represents a continuation.
  26. *
  27. * The default implementation of the continuation hook returns <tt>false</tt>.
  28. *
  29. * @par Example
  30. * @code
  31. * class my_handler;
  32. *
  33. * bool asio_handler_is_continuation(my_handler* context)
  34. * {
  35. * return true;
  36. * }
  37. * @endcode
  38. */
  39. inline bool asio_handler_is_continuation(...)
  40. {
  41. return false;
  42. }
  43. } // namespace asio
  44. #include "asio/detail/pop_options.hpp"
  45. #endif // ASIO_HANDLER_CONTINUATION_HOOK_HPP