process-cpp 3.0.0
A simple convenience library for handling processes in C++11.
|
The SignalTrap class encapsulates functionality to trap and handle signals. More...
#include <signal.h>
Public Member Functions | |
SignalTrap (const SignalTrap &)=delete | |
virtual | ~SignalTrap ()=default |
SignalTrap & | operator= (const SignalTrap &)=delete |
bool | operator== (const SignalTrap &) const =delete |
virtual bool | has (Signal signal)=0 |
Returns true if the given signal is trapped by this instance. | |
virtual void | run ()=0 |
Starts observation of incoming signals, relaying them via signal_raised(). The call blocks until stop is called. | |
virtual void | stop ()=0 |
Stops execution of the signal trap. | |
virtual core::Signal< Signal > & | signal_raised ()=0 |
Emitted whenever a trapped signal is raised by the operating system. | |
Protected Member Functions | |
SignalTrap ()=default | |
The SignalTrap class encapsulates functionality to trap and handle signals.
|
delete |
|
virtualdefault |
Reimplemented in impl::SignalTrap.
|
protecteddefault |
Returns true if the given signal is trapped by this instance.
Implemented in impl::SignalTrap.
|
delete |
|
delete |
Starts observation of incoming signals, relaying them via signal_raised(). The call blocks until stop is called.
Implemented in impl::SignalTrap.
Emitted whenever a trapped signal is raised by the operating system.
Implemented in impl::SignalTrap.
Stops execution of the signal trap.
Implemented in impl::SignalTrap.