gz/common/SignalHandler.hh
Register callbacks that get triggered on SIGINT and SIGTERM.
Definition: gz/common/SignalHandler.hh:48
bool Initialized() const
Get whether the signal handlers were successfully initialized.
Forward declarations for the common classes.
bool AddCallback(std::function< void(int)> _cb)
Add a callback to execute when a signal is received.
virtual void SetInitialized(const bool _init)
Set whether the signal handler was successfully initialized. This function is here for testing purpos...