Viam C++ SDK current
|
Defines handling logic for SIGINT and SIGTERM required by all C++ modules. More...
#include <signal_manager.hpp>
Public Member Functions | |
SignalManager () | |
Creates a new SignalManager. | |
int | wait () |
Wait for SignalManager to receive SIGINT or SIGTERM. | |
Defines handling logic for SIGINT and SIGTERM required by all C++ modules.
int viam::sdk::SignalManager::wait | ( | ) |
Wait for SignalManager to receive SIGINT or SIGTERM.
`std::runtime_error` | if the underlying sigwait call was unsuccessful. |