GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4AppControlTimer.h
Go to the documentation of this file.
1 // $Id: TGo4AppControlTimer.h 1196 2014-04-10 14:06:24Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef TGo4AppControlTimer_h
15 #define TGo4AppControlTimer_h
16 
17 #include "TTimer.h"
18 
19 class TGo4ThreadManager;
20 class TCondition;
21 
39 class TGo4AppControlTimer : public TTimer {
40 
41  public:
42  TGo4AppControlTimer (TGo4ThreadManager* manager, Long_t msperiod = 3000, Bool_t mode = kTRUE);
43 
44  virtual ~TGo4AppControlTimer();
45 
47  void SetManager (TGo4ThreadManager* parent) { fxManager=parent; }
48 
50  virtual Bool_t Notify ();
51 
56  const TCondition* GetCondition () const { return fxCondition;}
57 
64  void SetApplicationRun (Bool_t flag = kTRUE) { fbApplicationRun=flag; }
65 
69  Bool_t GetApplicationRun();
70 
71  protected:
79  static UInt_t fguTERMWAIT;
80 
87  static Int_t fgiTERMWAITCYCLES;
88 
95 
96  private:
97 
99 
100  TCondition *fxCondition;
101 
103 };
104 
105 #endif
void SetManager(TGo4ThreadManager *parent)
static Int_t fgiTERMWAITCYCLES
TGo4ThreadManager * fxManager
const TCondition * GetCondition() const
void SetApplicationRun(Bool_t flag=kTRUE)