Class SignalHandler

Nested Relationships

Nested Types

Class Documentation

class SignalHandler

Signal handler class used to support CTRL+c user interrupts. This class works by registering a interrupt handler during its lifetime; to check if an interrupt has been received or to immediately stop running a (long-running) algorithm, use the assureRunning or isRunning member functions.

Note

Make sure to delete this object when it is no longer required to free up the interrupt handler again for other code such as the python runtime!

Public Functions

SignalHandler()
~SignalHandler()
void assureRunning()
bool isRunning()
class InterruptException : public std::exception

Special Exception to indicate that a SIGINT has been received.

Public Functions

inline InterruptException()
inline const char *what() const noexcept override