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