![]() |
Construct a signal set and add two signals.
template< typename ExecutionContext> basic_signal_set( ExecutionContext & context, int signal_number_1, int signal_number_2, typename constraint< is_convertible< ExecutionContext &, execution_context & >::value, defaulted_constraint >::type = defaulted_constraint());
This constructor creates a signal set and registers for two signals.
An execution context which provides the I/O executor that the signal set will use, by default, to dispatch handlers for any asynchronous operations performed on the signal set.
The first signal number to be added.
The second signal number to be added.
This constructor is equivalent to performing:
asio::signal_set signals(context); signals.add(signal_number_1); signals.add(signal_number_2);