GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
TGo4TestThreadManager Class Reference

#include <TGo4TestThreadManager.h>

+ Inheritance diagram for TGo4TestThreadManager:

Public Member Functions

 TGo4TestThreadManager (const TGo4TestThreadManager &right)
 
 TGo4TestThreadManager (const char *name)
 
virtual ~TGo4TestThreadManager ()
 
virtual Int_t TestAction ()
 
TCanvas * GetCanvas ()
 
TPad * GetPad1 ()
 
TPad * GetPad2 ()
 
- Public Member Functions inherited from TGo4ThreadManager
 TGo4ThreadManager (const TGo4ThreadManager &right)
 
 TGo4ThreadManager (const char *name, Bool_t blockingmode=kTRUE, Bool_t autostart=kTRUE, Bool_t autocreate=kTRUE)
 
virtual ~TGo4ThreadManager ()
 
void SetTimer (TGo4AppControlTimer *ctrltimer)
 
TGo4ThreadHandlerGetWorkHandler () const
 
Bool_t BlockApp ()
 
Bool_t UnBlockApp (Int_t mode=0)
 
virtual Int_t Initialization ()
 
Bool_t IsInitDone () const
 
Bool_t IsTerminating () const
 
Bool_t IsTerminateApp () const
 
Bool_t IsAppBlocking () const
 
Bool_t IsBeingQuit () const
 
void SetBeingQuit (Bool_t on)
 
void Launch ()
 
virtual void Terminate (Bool_t termapp=kTRUE)
 
virtual void TerminateFast ()
 

Protected Attributes

TGo4TestRunnablefxControlRunnable
 
- Protected Attributes inherited from TGo4ThreadManager
Bool_t fbInitDone
 
Bool_t fbTerminating
 
Bool_t fbTerminateApplication
 
Bool_t fbAppBlocking
 
Bool_t fbAutoCreate
 
Bool_t fbAutoStart
 
Int_t fbBeingQuit
 
TGo4AppControlTimerfxBlocker
 
TGo4ThreadHandlerfxWorkHandler
 

Private Member Functions

 TGo4TestThreadManager ()
 

Private Attributes

TCanvas * fxCanvas
 
TPad * fxPad1
 
TPad * fxPad2
 

Additional Inherited Members

- Public Types inherited from TGo4ThreadManager
enum  { fguTEXTLENGTH = 256 }
 
- Static Public Attributes inherited from TGo4ThreadManager
static const Long_t fglTIMERPERIOD = 200
 

Detailed Description

Example of a user subclass of the threadmanager. This test threadmanager creates the runnables in its constructor and adds them to the threadhandler. NOTE: The Launch() method must be called at the end of the user threadmanager constructor to let all things begin.

Author
J. Adamczewski(at)gsi.de
Go4 project-DVEE-GSI Darmstadt
Germany
Version
0.9
Since
jul 2000-oct 2001

Definition at line 33 of file TGo4TestThreadManager.h.

Constructor & Destructor Documentation

TGo4TestThreadManager::TGo4TestThreadManager ( const TGo4TestThreadManager right)

Definition at line 20 of file TGo4TestThreadManager.cxx.

References GO4TRACE.

TGo4TestThreadManager::TGo4TestThreadManager ( const char *  name)
TGo4TestThreadManager::~TGo4TestThreadManager ( )
virtual

Definition at line 59 of file TGo4TestThreadManager.cxx.

References fxCanvas, fxPad1, fxPad2, and GO4TRACE.

TGo4TestThreadManager::TGo4TestThreadManager ( )
private

Member Function Documentation

TCanvas * TGo4TestThreadManager::GetCanvas ( )

Definition at line 74 of file TGo4TestThreadManager.cxx.

References fxCanvas, and GO4TRACE.

TPad * TGo4TestThreadManager::GetPad1 ( )

Definition at line 80 of file TGo4TestThreadManager.cxx.

References fxPad1, and GO4TRACE.

TPad * TGo4TestThreadManager::GetPad2 ( )

Definition at line 86 of file TGo4TestThreadManager.cxx.

References fxPad2, and GO4TRACE.

Int_t TGo4TestThreadManager::TestAction ( )
virtual

general testfunction which can be called from any thread runnable

Definition at line 67 of file TGo4TestThreadManager.cxx.

References GO4TRACE.

Member Data Documentation

TCanvas* TGo4TestThreadManager::fxCanvas
private
TGo4TestRunnable* TGo4TestThreadManager::fxControlRunnable
protected

Definition at line 60 of file TGo4TestThreadManager.h.

Referenced by TGo4TestThreadManager().

TPad* TGo4TestThreadManager::fxPad1
private

Definition at line 67 of file TGo4TestThreadManager.h.

Referenced by GetPad1(), TGo4TestThreadManager(), and ~TGo4TestThreadManager().

TPad* TGo4TestThreadManager::fxPad2
private

Definition at line 68 of file TGo4TestThreadManager.h.

Referenced by GetPad2(), TGo4TestThreadManager(), and ~TGo4TestThreadManager().


The documentation for this class was generated from the following files: