11 #ifndef ASIO_BASIC_SIGNAL_SET_HPP 12 #define ASIO_BASIC_SIGNAL_SET_HPP 14 #if defined(_MSC_VER) && (_MSC_VER >= 1200) 16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) 92 template <
typename SignalSetService = signal_set_service>
177 int signal_number_2,
int signal_number_3)
198 void add(
int signal_number)
232 void remove(
int signal_number)
366 template <
typename SignalHandler>
384 #endif // ASIO_BASIC_SIGNAL_SET_HPP void throw_error(const asio::error_code &err)
asio::error_code clear(asio::error_code &ec)
Remove all signals from a signal_set.
Provides core I/O functionality.
void add(int signal_number)
Add a signal to a signal_set.
basic_signal_set(asio::io_service &io_service, int signal_number_1, int signal_number_2, int signal_number_3)
Construct a signal set and add three signals.
Base class for all I/O objects.
#define ASIO_SIGNAL_HANDLER_CHECK(handler_type, handler)
Provides signal functionality.
basic_signal_set(asio::io_service &io_service, int signal_number_1, int signal_number_2)
Construct a signal set and add two signals.
void clear()
Remove all signals from a signal_set.
asio::error_code add(int signal_number, asio::error_code &ec)
Add a signal to a signal_set.
basic_signal_set(asio::io_service &io_service, int signal_number_1)
Construct a signal set and add one signal.
basic_signal_set(asio::io_service &io_service)
Construct a signal set without adding any signals.
asio::basic_streambuf< Allocator > CompletionCondition ASIO_MOVE_ARG(ReadHandler) handler)
implementation_type implementation
void cancel()
Cancel all operations associated with the signal set.
Class to represent an error code value.
ASIO_INITFN_RESULT_TYPE(SignalHandler, void(asio::error_code, int)) async_wait(ASIO_MOVE_ARG(SignalHandler) handler)
Start an asynchronous operation to wait for a signal to be delivered.
#define ASIO_MOVE_CAST(type)
asio::error_code cancel(asio::error_code &ec)
Cancel all operations associated with the signal set.