| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
StalledEventMonitor.h
Go to the documentation of this file.
1 /*
2 * StalledEventMonitor.h
3 *
4 * Created on: Apr 19, 2010
5 * Author: Marco Clemencic
6 */
7
8 #ifndef STALLEDEVENTMONITOR_H_
9 #define STALLEDEVENTMONITOR_H_
10
11 // Include files
12 #include "GaudiKernel/Service.h"
13 #include "GaudiKernel/IIncidentListener.h"
14 #include <memory>
15
16 // Forward declarations
17 class WatchdogThread;
18 class IIncidentSvc;
19
29 class StalledEventMonitor: public extends1<Service, IIncidentListener> {
30 public:
32 StalledEventMonitor(const std::string& name, ISvcLocator* svcLoc);
33
35 virtual ~StalledEventMonitor();
36
39 virtual StatusCode initialize();
40
42 virtual StatusCode start();
43
45 virtual void handle(const Incident& /* incident */);
46
48 virtual StatusCode stop();
49
51 virtual StatusCode finalize();
52
53 private:
55 unsigned int m_eventTimeout;
56
58 int m_maxTimeoutCount;
59
61 bool m_stackTrace;
62
64 std::auto_ptr<WatchdogThread> m_watchdog;
65
67 SmartIF<IIncidentSvc> m_incidentSvc;
68
69 };
70
71 #endif // STALLEDEVENTMONITOR_H_