11 #ifndef ASIO_SIGNAL_SET_SERVICE_HPP 12 #define ASIO_SIGNAL_SET_SERVICE_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 30 #if defined(GENERATING_DOCUMENTATION)
37 #if defined(GENERATING_DOCUMENTATION) 44 #if defined(GENERATING_DOCUMENTATION) 53 service_impl_(io_service)
73 return service_impl_.
add(impl, signal_number, ec);
80 return service_impl_.
remove(impl, signal_number, ec);
87 return service_impl_.
clear(impl, ec);
94 return service_impl_.
cancel(impl, ec);
98 template <
typename SignalHandler>
101 async_wait(implementation_type& impl,
115 void shutdown_service()
134 #endif // ASIO_SIGNAL_SET_SERVICE_HPP ASIO_DECL asio::error_code remove(implementation_type &impl, int signal_number, asio::error_code &ec)
ASIO_INITFN_RESULT_TYPE(SignalHandler, void(asio::error_code, int)) async_wait(implementation_type &impl
asio::error_code add(implementation_type &impl, int signal_number, asio::error_code &ec)
Add a signal to a signal_set.
ASIO_MOVE_ARG(SignalHandler) handler)
Class used to uniquely identify a service.
Provides core I/O functionality.
asio::error_code cancel(implementation_type &impl, asio::error_code &ec)
Cancel all operations associated with the signal set.
detail::signal_set_service::implementation_type implementation_type
The type of a signal set implementation.
asio::basic_streambuf< Allocator > MatchCondition enable_if< is_match_condition< MatchCondition >::value >::type *detail::async_result_init< ReadHandler, void(asio::error_code, std::size_t)> init(ASIO_MOVE_CAST(ReadHandler)(handler))
ASIO_DECL void shutdown_service()
ASIO_DECL asio::error_code add(implementation_type &impl, int signal_number, asio::error_code &ec)
void destroy(implementation_type &impl)
Destroy a signal set implementation.
fork_event
Fork-related event notifications.
ASIO_DECL void destroy(implementation_type &impl)
void construct(implementation_type &impl)
Construct a new signal set implementation.
Class to represent an error code value.
static asio::detail::service_id< signal_set_service > id
ASIO_DECL void fork_service(asio::io_service::fork_event fork_ev)
ASIO_DECL asio::error_code clear(implementation_type &impl, asio::error_code &ec)
void async_wait(implementation_type &impl, Handler &handler)
handler_type< Handler, Signature >::type handler
#define ASIO_MOVE_CAST(type)
Default service implementation for a signal set.
async_result< typename handler_type< Handler, Signature >::type > result
service_base(asio::io_service &io_service)
ASIO_DECL asio::error_code cancel(implementation_type &impl, asio::error_code &ec)
Base class for all io_service services.
signal_set_service(asio::io_service &io_service)
Construct a new signal set service for the specified io_service.
ASIO_DECL void construct(implementation_type &impl)
asio::error_code clear(implementation_type &impl, asio::error_code &ec)
Remove all signals from a signal_set.