1#ifndef __SIGNAL_HANDLING_HPP__
2#define __SIGNAL_HANDLING_HPP__
44 throw std::runtime_error(
"SignalHandler not initialized before use");
47 const auto ret =
instance->f_usr1_raised;
56 throw std::runtime_error(
"SignalHandler not initialized before use");
59 const auto ret =
instance->f_usr2_raised;
68 throw std::runtime_error(
"SignalHandler not initialized before use");
71 const auto ret =
instance->f_sigint_raised;
SignalHandler()
Constructor for SignalHandler.
Definition signal_handling.cpp:9
static SignalHandler * instance
Singleton instance of the SignalHandler.
Definition signal_handling.hpp:106
static void handle_SIGINT(int signal) noexcept
Definition signal_handling.cpp:38
bool f_usr2_raised
Definition signal_handling.hpp:104
static bool is_sigint_raised() noexcept(false)
Definition signal_handling.hpp:64
static void handle_SIGUSR2(int signal) noexcept
Handles the SIGUSR2 signal.
Definition signal_handling.cpp:30
bool f_sigint_raised
Definition signal_handling.hpp:101
static void handle_SIGUSR1(int signal) noexcept
Handles the SIGUSR1 signal.
Definition signal_handling.cpp:22
static bool is_usr1_raised() noexcept(false)
Checks if the SIGUSR1 signal has been raised.
Definition signal_handling.hpp:40
static bool is_usr2_raised() noexcept(false)
Definition signal_handling.hpp:52
bool f_usr1_raised
Definition signal_handling.hpp:102
Core component to perform simulation.
Definition data_exporter.hpp:19