![]() |
DD4hep
1.33.0
Detector Description Toolkit for High Energy Physics
|
Classes | |
| struct | sig_entry_t |
| struct | sig_handler_t |
| struct | sig_handler_t |
| struct | sig_handler_t |
Public Types | |
| typedef std::map< int, sig_handler_t > | SigMap |
Public Member Functions | |
| implementation () | |
| Default constructor. More... | |
| ~implementation () | |
| Default destructor. More... | |
| void | init () |
| Initialize the exit handler. Subscribe to default signals. More... | |
| void | install (int num, const std::string &name, struct sigaction &action) |
| Install handler for a single signal. More... | |
| int | subscribe (int signum, void *user_context, signal_handler_t handler) |
| Subscribe to a given signal with a user context and a user handler. The context MUST be unique! More... | |
| int | unsubscribe (int signum, void *user_context) |
| Unsubscribe from a given signal with a user context identifier. More... | |
| void | back_trace (int) |
| Create simple backtrace. More... | |
Static Public Member Functions | |
| static implementation & | instance () |
| Singleton accessor. More... | |
| static void | handler (int signum, siginfo_t *info, void *) |
| Static handler callback for system signal handler. More... | |
Public Attributes | |
| SigMap | m_map |
Small class to manipulate default signal handling
Definition at line 49 of file SignalHandler.cpp.
| typedef std::map<int, sig_handler_t> SignalHandler::implementation::SigMap |
Definition at line 63 of file SignalHandler.cpp.
| SignalHandler::implementation::implementation | ( | ) |
Default constructor.
Definition at line 88 of file SignalHandler.cpp.
| SignalHandler::implementation::~implementation | ( | ) |
Default destructor.
Definition at line 92 of file SignalHandler.cpp.
| void SignalHandler::implementation::back_trace | ( | int | ) |
Create simple backtrace.
Definition at line 169 of file SignalHandler.cpp.
|
static |
Static handler callback for system signal handler.
Definition at line 210 of file SignalHandler.cpp.
| void SignalHandler::implementation::init | ( | ) |
Initialize the exit handler. Subscribe to default signals.
Definition at line 105 of file SignalHandler.cpp.
| void SignalHandler::implementation::install | ( | int | num, |
| const std::string & | name, | ||
| struct sigaction & | action | ||
| ) |
Install handler for a single signal.
Definition at line 194 of file SignalHandler.cpp.
|
static |
Singleton accessor.
Definition at line 96 of file SignalHandler.cpp.
| int SignalHandler::implementation::subscribe | ( | int | signum, |
| void * | user_context, | ||
| signal_handler_t | handler | ||
| ) |
Subscribe to a given signal with a user context and a user handler. The context MUST be unique!
Definition at line 129 of file SignalHandler.cpp.
| int SignalHandler::implementation::unsubscribe | ( | int | signum, |
| void * | user_context | ||
| ) |
Unsubscribe from a given signal with a user context identifier.
Definition at line 154 of file SignalHandler.cpp.
| SigMap SignalHandler::implementation::m_map |
Definition at line 64 of file SignalHandler.cpp.
1.8.18