Viam C++ SDK current
Loading...
Searching...
No Matches
Public Member Functions | List of all members
viam::sdk::SignalManager Class Reference

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.
 

Detailed Description

Defines handling logic for SIGINT and SIGTERM required by all C++ modules.

Member Function Documentation

◆ wait()

int viam::sdk::SignalManager::wait ( )

Wait for SignalManager to receive SIGINT or SIGTERM.

Returns
The signal number if successful.
Exceptions
`std::runtime_error`if the underlying sigwait call was unsuccessful.

The documentation for this class was generated from the following file: