![]() |
The Gaudi Framework
v27r0
|
Service that monitor the time taken by processing of single events using a separate thread. More...
#include <src/component/StalledEventMonitor.h>


Public Member Functions | |
| StalledEventMonitor (const std::string &name, ISvcLocator *svcLoc) | |
| Constructor. More... | |
| ~StalledEventMonitor () override=default | |
| Destructor. More... | |
| StatusCode | initialize () override |
| Initialization of the service. More... | |
| StatusCode | start () override |
| Start the watchdog thread (before entering the event loop). More... | |
| void | handle (const Incident &) override |
| Notify the watchdog thread for a new event. More... | |
| StatusCode | stop () override |
| Stop the watchdog thread (after the event loop). More... | |
| StatusCode | finalize () override |
| Finalization of the service. More... | |
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 Attributes | |
| unsigned int | m_eventTimeout |
| Number of seconds allowed to process a single event. More... | |
| int | m_maxTimeoutCount |
| Number timeouts before aborting the execution (0 means never abort). More... | |
| bool | m_stackTrace |
| Whether to print a stack-trace on timeout. More... | |
| std::unique_ptr< WatchdogThread > | m_watchdog |
| Pointer to the watchdog thread that checks for the event timeout. More... | |
| SmartIF< IIncidentSvc > | m_incidentSvc |
| Pointer to the incident service. 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 monitor the time taken by processing of single events using a separate thread.
Definition at line 29 of file StalledEventMonitor.h.
| StalledEventMonitor::StalledEventMonitor | ( | const std::string & | name, |
| ISvcLocator * | svcLoc | ||
| ) |
Constructor.
Definition at line 84 of file StalledEventMonitor.cpp.
|
overridedefault |
Destructor.
|
override |
Finalization of the service.
Definition at line 146 of file StalledEventMonitor.cpp.
|
override |
Notify the watchdog thread for a new event.
Definition at line 135 of file StalledEventMonitor.cpp.
|
override |
Initialization of the service.
Prepare the watchdog thread and configures it.
Definition at line 98 of file StalledEventMonitor.cpp.
|
override |
Start the watchdog thread (before entering the event loop).
Definition at line 129 of file StalledEventMonitor.cpp.
|
override |
Stop the watchdog thread (after the event loop).
Definition at line 140 of file StalledEventMonitor.cpp.
|
private |
Number of seconds allowed to process a single event.
Definition at line 55 of file StalledEventMonitor.h.
|
private |
Pointer to the incident service.
Definition at line 67 of file StalledEventMonitor.h.
|
private |
Number timeouts before aborting the execution (0 means never abort).
Definition at line 58 of file StalledEventMonitor.h.
|
private |
Whether to print a stack-trace on timeout.
Definition at line 61 of file StalledEventMonitor.h.
|
private |
Pointer to the watchdog thread that checks for the event timeout.
Definition at line 64 of file StalledEventMonitor.h.