11 #ifndef ASIO_DETAIL_TASK_IO_SERVICE_HPP 12 #define ASIO_DETAIL_TASK_IO_SERVICE_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 20 #if !defined(ASIO_HAS_IOCP) 37 struct task_io_service_thread_info;
48 std::size_t concurrency_hint = 0);
86 if (--outstanding_work_ == 0)
97 template <
typename Handler>
101 template <
typename Handler>
102 void post(Handler& handler);
127 ASIO_DECL void do_dispatch(operation* op);
141 ASIO_DECL void wake_one_thread_and_unlock(
153 const bool one_thread_;
156 mutable mutex mutex_;
165 struct task_operation : operation
167 task_operation() : operation(0) {}
171 bool task_interrupted_;
195 #if defined(ASIO_HEADER_ONLY) 197 #endif // defined(ASIO_HEADER_ONLY) 199 #endif // !defined(ASIO_HAS_IOCP) 201 #endif // ASIO_DETAIL_TASK_IO_SERVICE_HPP
Provides core I/O functionality.
ASIO_DECL bool stopped() const
ASIO_DECL void init_task()
ASIO_DECL void abandon_operations(op_queue< operation > &ops)
ASIO_DECL std::size_t run_one(asio::error_code &ec)
static Value * contains(Key *k)
ASIO_DECL std::size_t poll_one(asio::error_code &ec)
ASIO_DECL task_io_service(asio::io_service &io_service, std::size_t concurrency_hint=0)
ASIO_DECL void post_deferred_completions(op_queue< operation > &ops)
ASIO_DECL std::size_t run(asio::error_code &ec)
class select_reactor reactor
void post(Handler &handler)
bool is_continuation(Context &context)
Class to represent an error code value.
ASIO_DECL void shutdown_service()
Destroy all user-defined handler objects owned by the service.
void dispatch(Handler &handler)
ASIO_DECL std::size_t poll(asio::error_code &ec)
ASIO_DECL void post_deferred_completion(operation *op)
ASIO_DECL void post_immediate_completion(operation *op, bool is_continuation)
task_io_service_operation operation