11 #ifndef ASIO_DETAIL_EXECUTOR_OP_HPP 12 #define ASIO_DETAIL_EXECUTOR_OP_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 18 #include "asio/detail/config.hpp" 19 #include "asio/detail/fenced_block.hpp" 20 #include "asio/detail/handler_alloc_helpers.hpp" 21 #include "asio/detail/handler_invoke_helpers.hpp" 22 #include "asio/detail/scheduler_operation.hpp" 24 #include "asio/detail/push_options.hpp" 29 template <
typename Handler,
typename Alloc,
30 typename Operation = scheduler_operation>
38 : Operation(&executor_op::do_complete),
39 handler_(ASIO_MOVE_CAST(H)(h)),
44 static void do_complete(
void* owner, Operation* base,
50 Alloc allocator(o->allocator_);
51 ptr p = { detail::addressof(allocator), o, o };
53 ASIO_HANDLER_COMPLETION((*o));
61 Handler handler(ASIO_MOVE_CAST(Handler)(o->handler_));
68 ASIO_HANDLER_INVOCATION_BEGIN(());
69 asio_handler_invoke_helpers::invoke(handler, handler);
70 ASIO_HANDLER_INVOCATION_END;
82 #include "asio/detail/pop_options.hpp" 84 #endif // ASIO_DETAIL_EXECUTOR_OP_HPP Definition: allocator.hpp:17
Definition: executor_op.hpp:31
Definition: null_fenced_block.hpp:25
Class to represent an error code value.
Definition: error_code.hpp:80
Definition: any_io_executor.hpp:28