AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliOnlineRecoTrigger.h
Go to the documentation of this file.
1 #ifndef ALIONLINERECOTRIGGER_H
2 #define ALIONLINERECOTRIGGER_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice */
6 
7 #include <TObject.h>
8 #include <TSysEvtHandler.h>
9 #include <TMutex.h>
10 #include <TCondition.h>
11 
12 
14 class SORNotifier;
15 
16 class TerminateSignalHandler: public TSignalHandler {
17 
18 public:
19  TerminateSignalHandler(): TSignalHandler((ESignals) 0,0), fTrigger(0) { }
20  TerminateSignalHandler(AliOnlineRecoTrigger* trigger, ESignals signal):
21  TSignalHandler(signal, kFALSE), fTrigger(trigger) {}
22 
24  virtual Bool_t Notify();
25 
26 private:
29 
30  AliOnlineRecoTrigger* fTrigger; // pointer to the current AliOnlineRecoTrigger
31 
32  ClassDef(TerminateSignalHandler, 0)
33 };
34 
35 class AliOnlineRecoTrigger: public TObject {
36 
37 public:
39  virtual ~AliOnlineRecoTrigger();
40 
41  virtual Bool_t Notify();
42  void Terminate();
43 
44  Int_t Run();
45 
46 private:
49 
50  Bool_t fNotified; // Notified flag
51  Bool_t fTerminate; // Terminate flag
52 
53  TMutex fMutex; // Mutex
54  TCondition fCondition; // Condition
55 
58 
59  ClassDef(AliOnlineRecoTrigger, 0)
60 };
61 
62 #endif
TerminateSignalHandler(AliOnlineRecoTrigger *trigger, ESignals signal)
virtual Bool_t Notify()
TerminateSignalHandler * fQuitSignalHandler
AliOnlineRecoTrigger & operator=(const AliOnlineRecoTrigger &other)
TerminateSignalHandler & operator=(const TerminateSignalHandler &other)
AliOnlineRecoTrigger * fTrigger
TerminateSignalHandler * fInterruptSignalHandler