v2.10-0 (21000JUN2005)

Go4AnalysisClient
Class TGo4CintLockTimer


class TGo4CintLockTimer
derived from TTimer

This timer is used to protect the Go4 threads against
the CINT main application when go4 is running as cint
server. Go4 thread activities that acquire the Go4 main mutex
are only allowed within a small time window inside the
Notify of this timer. Besides this, the root application will
hold the main mutex completely, thus avoiding go4 threads
to interfere with root system. Note: this mechanism is the
complement to the threadmanager application blocking mode,
meant to block the root application and allow the threads
everything.

Author:
J. Adamczewski
Since: 12/5/2005

Field Summary
 private Bool_tfbHaveLock
          True if this timer has locked the main mutex
 private static UInt_tfguTHREADTIME
          Time window in ms between unlock of mutex and
the next request in this timer notify.

Fields inherited from class TTimer
fTime, fAbsTime, fTimeout, fSync, fTimeID, fObject, fCommand

Constructor Summary
TGo4CintLockTimer(Long_t msperiod, Bool_t mode)
           

Destructor Summary
 virtual synchronized ~TGo4CintLockTimer()
           

Method Summary
 virtual Bool_tNotify()
          Routine called from TTimer on timeout

Methods inherited from class TTimer
CheckTimer, GetCommand, GetObject, GetTime, GetTimerID, GetAbsTime, HasTimedOut, IsSync, IsAsync, Add, Remove, Reset, SetCommand, SetObject, SetTime, SetTimerID, Start, Stop, TurnOn, TurnOff, Timeout, SingleShot, Class, Class_Name, Class_Version, Dictionary, IsA, ShowMembers, Streamer, StreamerNVirtual, DeclFileName, ImplFileLine, ImplFileName, DeclFileLine

Methods inherited from class TSysEvtHandler
Notified, Added, Removed

Field Detail

fbHaveLock

private Bool_t fbHaveLock
True if this timer has locked the main mutex

fguTHREADTIME

private static UInt_t fguTHREADTIME
Time window in ms between unlock of mutex and
the next request in this timer notify.
May be used for tuning application performance.
Constructor Detail

TGo4CintLockTimer

public TGo4CintLockTimer(Long_t msperiod, Bool_t mode)
Method Detail

~TGo4CintLockTimer

public virtual synchronized ~TGo4CintLockTimer()
Method Detail

Notify

public virtual Bool_t Notify()
Routine called from TTimer on timeout

J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev

30-06-2005