boost::corosio::signal_set::add
add overloads
Synopses
Declared in <boost/corosio/signal_set.hpp>
Add a signal to the signal set with default flags.
std::error_code
add(int signal_number);
Add a signal to the signal set.
std::error_code
add(
int signal_number,
flags_t flags);
Return Value
-
Success, or an error if the signal could not be added.
-
Success, or an error if the signal could not be added. Returns
errc::invalid_argumentif the signal is already registered with different flags.
Parameters
| Name | Description |
|---|---|
signal_number |
The signal to be added to the set. |
flags |
The flags to apply when registering the signal. On POSIX systems, these map to sigaction() flags. On Windows, flags are accepted but ignored. |
Created with MrDocs