return thread_call_stack::contains(this) != 0;
}
+ /// Capture the current exception so it can be rethrown from a run function.
+ BOOST_ASIO_DECL void capture_current_exception();
+
// Request invocation of the given operation and return immediately. Assumes
// that work_started() has not yet been called for the operation.
BOOST_ASIO_DECL void post_immediate_completion(
operation* op, bool is_continuation);
+ // Request invocation of the given operations and return immediately. Assumes
+ // that work_started() has not yet been called for the operations.
+ BOOST_ASIO_DECL void post_immediate_completions(std::size_t n,
+ op_queue<operation>& ops, bool is_continuation);
+
// Request invocation of the given operation and return immediately. Assumes
// that work_started() was previously called for the operation.
BOOST_ASIO_DECL void post_deferred_completion(operation* op);