Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext
basic_signal_set::basic_signal_set (8 of 8 overloads)

Construct a signal set and add three signals.

template<
    typename ExecutionContext>
basic_signal_set(
    ExecutionContext & context,
    int signal_number_1,
    int signal_number_2,
    int signal_number_3,
    typename constraint< is_convertible< ExecutionContext &, execution_context & >::value, defaulted_constraint >::type  = defaulted_constraint());

This constructor creates a signal set and registers for three signals.

Parameters

context

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.

signal_number_1

The first signal number to be added.

signal_number_2

The second signal number to be added.

signal_number_3

The third signal number to be added.

Remarks

This constructor is equivalent to performing:

boost::asio::signal_set signals(context);
signals.add(signal_number_1);
signals.add(signal_number_2);
signals.add(signal_number_3);

PrevUpHomeNext