| v2.10-0 (21000JUN2005) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
base class for classes that
shall be accessed from a thread /runnable
instance
| Field Summary | |
protected Bool_t | fbAppBlockingtrue if threadmanager shall block root gSystem using the AppControlTimer; false if gSystem shall never be blocked (necessary for gui) |
protected Bool_t | fbAutoCreateIf true, TThreads of all go4threads in list shall be created automatically on calling Launch(). |
protected Bool_t | fbAutoStartIf true, workfunctions (runnable Run()) of all go4threads in list shall be started automatically on Initialization. |
protected Bool_t | fbInitDoneis set kTRUE after first Initialize is done |
protected Bool_t | fbTerminateApplicationIf true, terminate complete application. |
protected Bool_t | fbTerminatingflag showing termination status |
const static const Long_t | fglTIMERPERIODPeriod in ms for the application control timer |
const static const UInt_t | fguTEXTLENGTHDefault textlength for char arrays |
protected TGo4AppControlTimer* | fxBlockerComposition of Application control timer. |
protected TGo4ThreadHandler* | fxWorkHandlerThread handler aggregate (threadsafe list of go4 threads) |
| Fields inherited from class TNamed |
fName, fTitle |
| Constructor Summary | |
| TGo4ThreadManager(const TGo4ThreadManager& right) |
| TGo4ThreadManager(const char * name, Bool_t blockingmode, Bool_t autostart, Bool_t autocreate)ctor parameters: blockingmode=true: gApplication is blocked by timer autostart=true: all thread runnables start their work on Initialization() autocreate=true: all threads added to handler in threadmanager ctor are created on Launch() |
private | TGo4ThreadManager() |
| Destructor Summary | |
virtual synchronized | ~TGo4ThreadManager() |
| Method Summary | |
Bool_t | BlockApp()Blocks gSystem by means of the blocking timer |
TGo4ThreadHandler* | GetWorkHandler()Access to ThreadHandler for working threads |
virtual Int_t | Initialization() |
Bool_t | IsAppBlocking()Returns true if threadmanager works in root system blocking mode |
const Bool_t | IsInitDone() |
const Bool_t | IsTerminateApp() |
const Bool_t | IsTerminating()returns termination status of Threadmanager |
void | Launch()This Method has to be called to create the startup threads and to turn on the application control timer. |
synchronized TGo4ThreadManager& | operator=(const TGo4ThreadManager& right) |
void | SetTimer(TGo4AppControlTimer* ctrltimer)user can exchange the standard control timer by an own derived one by this method |
virtual void | Terminate(Bool_t termapp)deletes the Manager instance via Control timer. |
virtual void | TerminateFast()Alternative termination in case of error |
Bool_t | UnBlockApp(Int_t mode)Wakes up the control timer waiting for his condition; parameter mode specifies whether timer will block again at next turn (mode=0), timer will block when all threads are up (mode=1), or timer will not block again unless the next Block call, i.e. applicationrun flag is reset (mode=2) |
| Methods inherited from class TNamed |
operator=, Clear, Clone, Compare, Copy, FillBuffer, GetName, GetTitle, Hash, IsSortable, SetName, SetNameTitle, SetTitle, ls, Print, Sizeof, Class, Class_Name, Class_Version, Dictionary, IsA, ShowMembers, Streamer, StreamerNVirtual, DeclFileName, ImplFileLine, ImplFileName, DeclFileLine |
| Field Detail |
protected Bool_t fbAppBlocking
protected Bool_t fbAutoCreate
protected Bool_t fbAutoStart
protected Bool_t fbInitDone
protected Bool_t fbTerminateApplication
protected Bool_t fbTerminating
public const static const Long_t fglTIMERPERIOD
public const static const UInt_t fguTEXTLENGTH
protected TGo4AppControlTimer* fxBlocker
protected TGo4ThreadHandler* fxWorkHandler
| Constructor Detail |
public TGo4ThreadManager(const TGo4ThreadManager& right)
public TGo4ThreadManager(const char * name, Bool_t blockingmode, Bool_t autostart, Bool_t autocreate)
private TGo4ThreadManager()
| Method Detail |
public virtual synchronized ~TGo4ThreadManager()
| Method Detail |
public Bool_t BlockApp()
public TGo4ThreadHandler* GetWorkHandler()
public virtual Int_t Initialization()
public Bool_t IsAppBlocking()
public const Bool_t IsInitDone()
public const Bool_t IsTerminateApp()
public const Bool_t IsTerminating()
public void Launch()
public synchronized TGo4ThreadManager& operator=(const TGo4ThreadManager& right)
public void SetTimer(TGo4AppControlTimer* ctrltimer)
public virtual void Terminate(Bool_t termapp)
public virtual void TerminateFast()
public Bool_t UnBlockApp(Int_t mode)
| Association Links |
to Class TGo4ThreadHandler
| J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||