17 #ifndef HTGS_TASKGRAPHSIGNALHANDLER_HPP 18 #define HTGS_TASKGRAPHSIGNALHANDLER_HPP 62 std::string signalString(std::to_string(signum));
64 std::string signalString(strsignal(signum));
71 for (
size_t i = 0; i <
instances.size(); i++) {
72 instances[i]->writeDotToFile(signalString +
"-" + std::to_string(i) +
"-graph-output.dot",
100 static bool signalHandled;
104 bool htgs::TaskGraphSignalHandler::signalHandled =
false;
107 #endif //HTGS_TASKGRAPHSIGNALHANDLER_HPP #define DOTGEN_FLAG_SHOW_TASK_LIVING_STATUS
Shows the number of threads that are alive running the task.
Definition: TaskGraphDotGenFlags.hpp:98
static std::vector< AnyTaskGraphConf * > instances
< The task graph instances
Definition: TaskGraphSignalHandler.hpp:99
static void registerSignal(int signum=SIGTERM)
Registers a signal for handling.
Definition: TaskGraphSignalHandler.hpp:93
Implements the base class used by the TaskGraphConf, which removes the template arguments and impleme...
static void registerTaskGraph(AnyTaskGraphConf *taskGraph)
Registers a task graph to be displayed when a signal is fired.
Definition: TaskGraphSignalHandler.hpp:84
Implements a signal handler to catch events such as termination and killing of the process...
Definition: TaskGraphSignalHandler.hpp:52
static void handleSignal(int signum=SIGTERM)
Function that handles signals.
Definition: TaskGraphSignalHandler.hpp:60
Implements the base class for the TaskGraphConf class, removing the template arguments and providing ...
Definition: AnyTaskGraphConf.hpp:66
Definition: Bookkeeper.hpp:23
#define DOTGEN_FLAG_SHOW_CONNECTOR_VERBOSE
Shows verbose information within each connector in the graph.
Definition: TaskGraphDotGenFlags.hpp:92