I would like to call an attention of all "on-line" ROOT users to
the class TTimer (see:http://root.cern.ch/root/html/TTimer.html).
It seems me to this class can help solve roughly say 80 % of the
"on-line" problem / task and avoid the troubles coming with "share
memory", "client server", "multi thread / multi-processing" etc.
I believe this approach is quite robust and safe, another
advantage it will work any platform.
(Just compare: Netscape is done this way but Microsoft Internet
Explorer is a mutlithread application)
Valery
http://root.cern.ch/root/html/TTimer.html
Class Description
TTimer
Handles synchronous and a-synchronous timer events. To make use of
this class one has to sub-class TTimer and implement Notify() and
Remove() (if timer has not been added to the gSystem timer list).
Without sub-classing one can use the HasTimedOut() method.
Use Reset() to reset the timer after expiration. To disable a timer
remove it using Remove() or destroy it.
=================================================================
Dr. Valeri Faine (Fine)
------------------- Phone: +1 516 344 7806
Brookhaven National Laboratory FAX : +1 516 344 4206
Bldg. 510A /STAR mailto:fine@rsgi01.rhic.bnl.gov
Upton, New York, 11973-5000 http://nicewww.cern.ch/~fine
USA
Dr. Valery Fine Telex : 911621 dubna su
-----------
LCTA/Joint Inst.for Nuclear Res. Phone : +7 09621 6 40 80
141980 Dubna, Moscow region Fax : +7 09621 6 51 45
Russia mailto:fine@main1.jinr.dubna.su