Viam C++ SDK
current
Loading...
Searching...
No Matches
src
viam
sdk
module
signal_manager.hpp
1
#pragma once
2
3
#include <signal.h>
4
5
namespace
viam {
6
namespace
sdk {
7
12
class
SignalManager
{
13
public
:
15
explicit
SignalManager
();
16
20
int
wait
();
21
22
private
:
23
sigset_t sigset_;
24
};
25
26
}
// namespace sdk
27
}
// namespace viam
viam::sdk::SignalManager
Defines handling logic for SIGINT and SIGTERM required by all C++ modules.
Definition
signal_manager.hpp:12
viam::sdk::SignalManager::SignalManager
SignalManager()
Creates a new SignalManager.
viam::sdk::SignalManager::wait
int wait()
Wait for SignalManager to receive SIGINT or SIGTERM.
Generated by
1.10.0