14#ifndef TGo4ThreadManager_H
15#define TGo4ThreadManager_H
42 TGo4ThreadManager(
const char *name, Bool_t blockingmode = kTRUE, Bool_t autostart = kTRUE, Bool_t autocreate = kTRUE);
90 virtual void Terminate (Bool_t termap = kTRUE);
Timer with main purpose to block the root TApplication loop during thread execution.
Bool_t IsTerminateApp() const
TGo4ThreadHandler * fxWorkHandler
Thread handler aggregate (threadsafe list of go4 threads) aggregationByValue 1 1.
Bool_t UnBlockApp(Int_t mode=0)
Wakes up the control timer waiting for his condition; parameter mode specifies whether timer will blo...
Bool_t fbAutoStart
If true, workfunctions (runnable Run()) of all go4threads in list shall be started automatically on I...
virtual void TerminateFast()
Alternative termination in case of error.
Bool_t fbTerminating
flag showing termination status
Bool_t IsTerminating() const
returns termination status of Threadmanager
Bool_t fbInitDone
is set kTRUE after first Initialize is done
TGo4AppControlTimer * fxBlocker
Composition of Application control timer.
virtual Int_t Initialization()
Bool_t IsAppBlocking() const
Returns true if threadmanager works in root system blocking mode.
virtual ~TGo4ThreadManager()
static const Long_t fglTIMERPERIOD
Period in ms for the application control timer.
TGo4ThreadHandler * GetWorkHandler() const
Access to ThreadHandler for working threads.
Bool_t fbAutoCreate
If true, TThreads of all go4threads in list shall be created automatically on calling Launch().
Bool_t BlockApp()
Blocks gSystem by means of the blocking timer.
Bool_t fbAppBlocking
true if threadmanager shall block root gSystem using the AppControlTimer; false if gSystem shall neve...
void SetTimer(TGo4AppControlTimer *ctrltimer)
user can exchange the standard control timer by an own derived one by this method
TGo4ThreadManager(const TGo4ThreadManager &right)
void SetBeingQuit(Bool_t on)
Bool_t fbTerminateApplication
If true, terminate complete application.
Bool_t IsBeingQuit() const
Returns true if threadmanager works in root system blocking mode.
virtual void Terminate(Bool_t termap=kTRUE)
deletes the Manager instance via Control timer.
Bool_t IsInitDone() const
void Launch()
This Method has to be called to create the startup threads and to turn on the application control tim...