14#ifndef TGo4ThreadHandler_H
15#define TGo4ThreadHandler_H
66 Bool_t
Create(
const char *thname);
73 Bool_t
Cancel(
const char *thname);
86 Bool_t
Start(
const char *thname);
94 Bool_t
Stop(
const char *thname);
Base class for all go4 runnables.
TGo4Thread * GetThread(const char *name)
Access to Go4Thread by name.
Int_t DumpThreads(Int_t mode=0)
dumps thread process information to logging output i.e.
TMutex * fxListMutex
Mutex protecting thread array.
Bool_t AllCreated()
Returns true if all root threads in list are existing, i.e.
TGo4ThreadManager * fxManager
Backlink to threadmanager who owns this thread handler.
Int_t CancelAll()
Cancel all Threads in the thread list.
Int_t GetEntries() const
Number of threads in list.
Bool_t fbIsOperating
kTRUE, if threadhandler performs any action that requires gSystem support.
Bool_t RemoveThread(const char *name)
Remove thread by name from Thread List.
Int_t StopAll()
Start work function of all Threads in the thread list.
TIterator * fxIterator
Iterator for Thread Array.
Bool_t NewThread(const char *name, TGo4Runnable *runnable)
Creates new internal Go4 Thread with name and adds it to the List External runnable is passed to spec...
TGo4ThreadHandler(const TGo4ThreadHandler &right)
Bool_t AllWaiting()
Returns true if all threads in list are waiting, i.e.
Int_t ReCreateAll()
Recreate all Threads in the thread list.
Bool_t Start(const char *thname)
Starts work function of the Go4 Thread of name 'name'.
Bool_t IsOperating() const
Returns kTRUE if threadhandler performs any action that requires gSystem support.
Int_t CreateAll()
Launch all Threads in the thread list.
Int_t StartAll()
Start work function of all Threads in the thread list.
TMutex * fxOperMutex
Mutex to protect IsOperating flag, flag is set kTRUE to indicate that AppControl timer must not block...
Bool_t AddThread(TGo4Thread *gthr)
Adds Reference to (externally created) thread to Thread List.
Bool_t AllRunning()
Returns true if all threads in list are running, i.e.
Bool_t Create(const char *thname)
Launch the ROOT Thread specified by the Go4 Thread of name 'name'.
Bool_t Stop(const char *thname)
Stops work function of the Go4 Thread of name 'name'.
TObjArray * fxArray
Array of Go4Threads.
Bool_t Cancel(const char *thname)
Cancels the ROOT Thread specified by the Go4 Thread of name 'name'.
Bool_t ReCreate(const char *thname)
ReCreate (Cancel and Create) all Threads in the thread list.
virtual ~TGo4ThreadHandler()