11 #ifndef ASIO_DETAIL_STRAND_SERVICE_HPP 12 #define ASIO_DETAIL_STRAND_SERVICE_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 87 template <
typename Handler>
88 void dispatch(implementation_type& impl, Handler& handler);
91 template <
typename Handler>
92 void post(implementation_type& impl, Handler& handler);
96 const implementation_type& impl)
const;
104 ASIO_DECL void do_post(implementation_type& impl,
109 std::size_t bytes_transferred);
118 #if defined(ASIO_STRAND_IMPLEMENTATIONS) 119 enum { num_implementations = ASIO_STRAND_IMPLEMENTATIONS };
120 #else // defined(ASIO_STRAND_IMPLEMENTATIONS) 121 enum { num_implementations = 193 };
122 #endif // defined(ASIO_STRAND_IMPLEMENTATIONS) 138 #if defined(ASIO_HEADER_ONLY) 140 #endif // defined(ASIO_HEADER_ONLY) 142 #endif // ASIO_DETAIL_STRAND_SERVICE_HPP
Provides core I/O functionality.
friend class strand_service
void post(implementation_type &impl, Handler &handler)
ASIO_DECL void construct(implementation_type &impl)
class task_io_service io_service_impl
void dispatch(implementation_type &impl, Handler &handler)
ASIO_DECL bool running_in_this_thread(const implementation_type &impl) const
bool is_continuation(Context &context)
ASIO_DECL void shutdown_service()
Destroy all user-defined handler objects owned by the service.
Class to represent an error code value.
task_io_service_operation operation
strand_impl * implementation_type