1#ifndef __SIGNAL_HANDLING_HPP__
2#define __SIGNAL_HANDLING_HPP__
42 [[nodiscard]]
static inline bool
47 throw std::runtime_error(
"SignalHandler not initialized before use");
50 const auto ret =
instance->f_usr1_raised;
55 [[nodiscard]]
static inline bool
60 throw std::runtime_error(
"SignalHandler not initialized before use");
63 const auto ret =
instance->f_usr2_raised;
68 [[nodiscard]]
static inline bool
73 throw std::runtime_error(
"SignalHandler not initialized before use");
76 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:111
static void handle_SIGINT(int signal) noexcept
Definition signal_handling.cpp:43
bool f_usr2_raised
Definition signal_handling.hpp:109
static bool is_sigint_raised() noexcept(false)
Definition signal_handling.hpp:69
static void handle_SIGUSR2(int signal) noexcept
Handles the SIGUSR2 signal.
Definition signal_handling.cpp:34
bool f_sigint_raised
Definition signal_handling.hpp:106
static void handle_SIGUSR1(int signal) noexcept
Handles the SIGUSR1 signal.
Definition signal_handling.cpp:25
static bool is_usr1_raised() noexcept(false)
Checks if the SIGUSR1 signal has been raised.
Definition signal_handling.hpp:43
static bool is_usr2_raised() noexcept(false)
Definition signal_handling.hpp:56
bool f_usr1_raised
Definition signal_handling.hpp:107
Core component to perform simulation.
Definition data_exporter.hpp:19