Go to the documentation of this file.
18 #ifndef STALLEDEVENTMONITOR_H_
19 #define STALLEDEVENTMONITOR_H_
42 using extends::extends;
62 "[[deprecated]] **use Gaudi::EventWatchdogAlg** - Number of seconds "
63 "allowed to process a single event (0 to disable the check)." };
65 "[[deprecated]] **use Gaudi::EventWatchdogAlg** - Number timeouts before "
66 "aborting the execution (0 means never abort)." };
68 this,
"StackTrace",
false,
69 "[[deprecated]] **use Gaudi::EventWatchdogAlg** - Whether to print the stack-trace on timeout." };
78 #endif // STALLEDEVENTMONITOR_H_
Service that monitor the time taken by processing of single events using a separate thread.
StatusCode initialize() override
Initialization of the service.
StatusCode finalize() override
Finalization of the service.
Gaudi::Property< unsigned int > m_eventTimeout
Base class used to extend a class implementing other interfaces.
Gaudi::Property< int > m_maxTimeoutCount
void handle(const Incident &) override
Notify the watchdog thread for a new event.
std::unique_ptr< WatchdogThread > m_watchdog
Pointer to the watchdog thread that checks for the event timeout.
StatusCode stop() override
Stop the watchdog thread (after the event loop).
SmartIF< IIncidentSvc > m_incidentSvc
Pointer to the incident service.
Gaudi::Property< bool > m_stackTrace
StatusCode start() override
Start the watchdog thread (before entering the event loop).