![]() |
HTGS
v2.0
The Hybrid Task Graph Scheduler
|
Implements a signal handler to catch events such as termination and killing of the process. More...
#include <htgs/log/TaskGraphSignalHandler.hpp>
Static Public Member Functions | |
static void | handleSignal (int signum=SIGTERM) |
Function that handles signals. More... | |
static void | registerTaskGraph (AnyTaskGraphConf *taskGraph) |
Registers a task graph to be displayed when a signal is fired. More... | |
static void | registerSignal (int signum=SIGTERM) |
Registers a signal for handling. More... | |
Static Private Attributes | |
static std::vector< AnyTaskGraphConf * > | instances |
< The task graph instances | |
static bool | signalHandled = false |
Implements a signal handler to catch events such as termination and killing of the process.
Once a signal is caught, all task graphs that are registered with the signal handler will be written as a dot file. The dot file is output in the working directory with the name of the signal as a prefix and '<#>-graph-output.dot' as the suffix.
Example usage:
|
inlinestatic |
Function that handles signals.
Use TaskGraphSignalHandler::registerSignal to signal to this function.
signum | the signal number that was triggered |
|
inlinestatic |
Registers a signal for handling.
(default SIGTERM)
signum |
|
inlinestatic |
Registers a task graph to be displayed when a signal is fired.
taskGraph | the task graph to be displayed. Calling this function on multiple graphs will output multiple dot files. |