Syntalos::TermSignalWatcher
Syntalos::TermSignalWatcher
Delivers SIGINT and SIGTERM as a Qt signal on the thread that created the watcher. More…
#include <termsignalwatcher.h>
Inherits from QObject
Public Signals
| Name | |
|---|---|
| void | terminationRequested(int signum) |
Public Functions
| Name | |
|---|---|
| TermSignalWatcher(QObject * parent =nullptr) | |
| ~TermSignalWatcher() override | |
| bool | ensureHandlersInstalled() Reinstall our handlers if something replaced them. |
Detailed Description
class Syntalos::TermSignalWatcher;Delivers SIGINT and SIGTERM as a Qt signal on the thread that created the watcher.
Syntalos must not simply die on these signals: a running experiment would be cut off without finalizing its data, and shared-memory resources of the IPC layer would be left behind. Only one instance may exist per process.
Public Signals Documentation
signal terminationRequested
void terminationRequested(
int signum
)Public Functions Documentation
function TermSignalWatcher
explicit TermSignalWatcher(
QObject * parent =nullptr
)function ~TermSignalWatcher
~TermSignalWatcher() overridefunction ensureHandlersInstalled
bool ensureHandlersInstalled()Reinstall our handlers if something replaced them.
Return: true if the handlers were still in place.
Updated on 2026-11-26 at 18:54:14 +0000