ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
RAII guard for signal handling. More...
#include <signalhandling.hpp>
Public Member Functions | |
SignalHandler (SignalHandler &&)=delete | |
SignalHandler & | operator= (SignalHandler &&)=delete |
SignalHandler (SignalHandler const &)=delete | |
SignalHandler & | operator= (SignalHandler const &)=delete |
SignalHandler (int signal, void(*handler)(int)) | |
Constructor. | |
~SignalHandler () | |
Destructor. | |
RAII guard for signal handling.
This object saves the current signal handler for signal
, replaces it with a custom handler handler
and restores it on destruction.
Definition at line 34 of file signalhandling.hpp.
|
delete |
|
delete |
|
inline |
Constructor.
[in] | signal | Number of signal to replace |
[in] | handler | Function to handle the signal |
Definition at line 49 of file signalhandling.hpp.
References runtimeErrorMsg.
|
inline |
Destructor.
Restores the handler which was active at the time of construction.
Definition at line 65 of file signalhandling.hpp.
References runtimeErrorMsg.
|
delete |
|
delete |