00001 //--------------------------------------------------------------- 00002 // Go4 Release Package v2.10-5 (build 21005) 00003 // 03-Nov-2005 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at DVEE department, GSI 00007 //--------------------------------------------------------------- 00008 // 00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI 00010 // Planckstr. 1, 64291 Darmstadt, Germany 00011 //Contact: http://go4.gsi.de 00012 //---------------------------------------------------------------- 00013 //This software can be used under the license agreements as stated 00014 //in Go4License.txt file which is part of the distribution. 00015 //---------------------------------------------------------------- 00016 #ifndef TGo4AppControlTimer_h 00017 #define TGo4AppControlTimer_h 1 00018 00019 #include "TTimer.h" 00020 00021 class TGo4ThreadManager; 00022 class TCondition; 00023 00042 class TGo4AppControlTimer : public TTimer 00043 { 00044 00045 public: 00046 TGo4AppControlTimer(const TGo4AppControlTimer &right); 00047 00048 TGo4AppControlTimer (TGo4ThreadManager* manager, Long_t msperiod = 3000, Bool_t mode = kTRUE); 00049 00050 virtual ~TGo4AppControlTimer(); 00051 00052 TGo4AppControlTimer & operator=(const TGo4AppControlTimer &right); 00053 00055 void SetManager (TGo4ThreadManager* parent) { fxManager=parent; } 00056 00058 virtual Bool_t Notify (); 00059 00064 const TCondition* GetCondition () const { return fxCondition;} 00065 00072 void SetApplicationRun (Bool_t flag = kTRUE) { fbApplicationRun=flag; } 00073 00077 Bool_t GetApplicationRun(); 00078 00079 protected: 00087 static UInt_t fguTERMWAIT; 00088 00095 static Int_t fgiTERMWAITCYCLES; 00096 00102 TGo4ThreadManager *fxManager; 00103 00104 private: 00105 00106 Bool_t fbApplicationRun; 00107 00108 TCondition *fxCondition; 00109 00110 TGo4AppControlTimer(); 00111 }; 00112 00113 #endif 00114 00115 //----------------------------END OF GO4 SOURCE FILE ---------------------