![]() |
The Gaudi Framework
v27r0
|
Service that stop the processing if a signal is received. More...


Public Member Functions | |
| StopSignalHandler (const std::string &name, ISvcLocator *svcLoc) | |
| StatusCode | initialize () override |
| StatusCode | finalize () override |
| void | handle (const Incident &) override |
Public Member Functions inherited from extends< BASE, Interfaces > | |
| void * | i_cast (const InterfaceID &tid) const override |
| Implementation of IInterface::i_cast. More... | |
| StatusCode | queryInterface (const InterfaceID &ti, void **pp) override |
| Implementation of IInterface::queryInterface. More... | |
| std::vector< std::string > | getInterfaceNames () const override |
| Implementation of IInterface::getInterfaceNames. More... | |
| ~extends () override=default | |
| Virtual destructor. More... | |
| void * | i_cast (const InterfaceID &tid) const override |
| Implementation of IInterface::i_cast. More... | |
| StatusCode | queryInterface (const InterfaceID &ti, void **pp) override |
| Implementation of IInterface::queryInterface. More... | |
| std::vector< std::string > | getInterfaceNames () const override |
| Implementation of IInterface::getInterfaceNames. More... | |
| ~extends () override=default | |
| Virtual destructor. More... | |
Public Member Functions inherited from extend_interfaces< Interfaces...> | |
| ~extend_interfaces () override=default | |
| Virtual destructor. More... | |
| ~extend_interfaces () override=default | |
| Virtual destructor. More... | |
Private Member Functions | |
| std::pair< int, bool > | i_decodeSignal (const std::string &sig) |
| Function to translate the signal name to the signal number. More... | |
Private Attributes | |
| std::vector< std::string > | m_usedSignals |
| List of signal names or numbers (encoded as strings) to use to schedule a stop. More... | |
| std::map< int, bool > | m_signals |
| Map of monitored signal numbers to the flag telling if they have to be propagated or not. More... | |
| bool | m_stopRequested |
| Flag to remember if the stop has been requested because of a signal. More... | |
| SmartIF< Gaudi::ISignalMonitor > | m_signalMonitor |
| Pointer to the signal monitor service. More... | |
| SmartIF< IIncidentSvc > | m_incidentSvc |
| Pointer to the incident service. More... | |
| SmartIF< IProperty > | m_appProperty |
| Pointer to the interface to set the return code of the application. More... | |
Additional Inherited Members | |
Public Types inherited from extends< BASE, Interfaces > | |
| using | base_class = extends |
| Typedef to this class. More... | |
| using | extend_interfaces_base = extend_interfaces< Interfaces...> |
| Typedef to the base of this class. More... | |
| using | base_class = extends |
| Typedef to this class. More... | |
| using | extend_interfaces_base = extend_interfaces< Interfaces...> |
| Typedef to the base of this class. More... | |
Public Types inherited from extend_interfaces< Interfaces...> | |
| using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type |
| take union of the ext_iids of all Interfaces... More... | |
| using | ext_iids = typename Gaudi::interface_list_cat< typename Interfaces::ext_iids...>::type |
| take union of the ext_iids of all Interfaces... More... | |
Service that stop the processing if a signal is received.
The signals to be intercepted have to be declared in the property Signals as a list of strings (signal names or numbers). If '+' is appended to the signal name, then the signal is propagated to the signal handlers already registered when this service is initialized.
Definition at line 339 of file SignalMonitorSvc.cpp.
|
inline |
Definition at line 341 of file SignalMonitorSvc.cpp.
|
inlineoverride |
Definition at line 396 of file SignalMonitorSvc.cpp.
|
inlineoverride |
Definition at line 409 of file SignalMonitorSvc.cpp.
|
inlineprivate |
Function to translate the signal name to the signal number.
Definition at line 455 of file SignalMonitorSvc.cpp.
|
inlineoverride |
Definition at line 351 of file SignalMonitorSvc.cpp.
Pointer to the interface to set the return code of the application.
Definition at line 453 of file SignalMonitorSvc.cpp.
|
private |
Pointer to the incident service.
Definition at line 451 of file SignalMonitorSvc.cpp.
|
private |
Pointer to the signal monitor service.
Definition at line 449 of file SignalMonitorSvc.cpp.
|
private |
Map of monitored signal numbers to the flag telling if they have to be propagated or not.
Definition at line 445 of file SignalMonitorSvc.cpp.
|
private |
Flag to remember if the stop has been requested because of a signal.
Definition at line 447 of file SignalMonitorSvc.cpp.
|
private |
List of signal names or numbers (encoded as strings) to use to schedule a stop.
Definition at line 443 of file SignalMonitorSvc.cpp.