2 // handler_continuation_hook.hpp
3 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 // Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com)
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)
11 #ifndef BOOST_ASIO_HANDLER_CONTINUATION_HOOK_HPP
12 #define BOOST_ASIO_HANDLER_CONTINUATION_HOOK_HPP
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
18 #include <boost/asio/detail/config.hpp>
20 #include <boost/asio/detail/push_options.hpp>
25 /// Default continuation function for handlers.
27 * Asynchronous operations may represent a continuation of the asynchronous
28 * control flow associated with the current handler. The implementation can use
29 * this knowledge to optimise scheduling of the handler.
31 * Implement asio_handler_is_continuation for your own handlers to indicate
32 * when a handler represents a continuation.
34 * The default implementation of the continuation hook returns <tt>false</tt>.
40 * bool asio_handler_is_continuation(my_handler* context)
46 inline bool asio_handler_is_continuation(...)
54 #include <boost/asio/detail/pop_options.hpp>
56 #endif // BOOST_ASIO_HANDLER_CONTINUATION_HOOK_HPP