54class TSingleShotCleaner :
public TTimer {
59 virtual ~TSingleShotCleaner() { fGarbage->
Delete();
delete fGarbage; }
218 Connect(
this,
"Timeout()",
"TTimer",
this,
"TurnOff()");
220 Disconnect(
this,
"Timeout()",
this,
"TurnOff()");
244 Disconnect(
this,
"Timeout()",
this,
"TurnOff()");
257 void *receiver,
const char *method)
261 receiver_class, receiver, method);
263 static TSingleShotCleaner singleShotCleaner;
268 "TTimer", &singleShotCleaner,
"TurnOn()");
R__EXTERN void * gTQSender
R__EXTERN TSystem * gSystem
virtual void Add(TObject *obj)
virtual void Delete(Option_t *option="")
Remove all objects from the list AND delete all heap based objects.
Mother of all ROOT objects.
virtual Bool_t HandleTimer(TTimer *timer)
Execute action in response of a timer timing out.
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
Bool_t Disconnect(const char *signal=0, void *receiver=0, const char *slot=0)
Disconnects signal of this object from slot of receiver.
virtual void ResetTimer(TTimer *)
virtual TTime Now()
Get current time in milliseconds since 0:00 Jan 1 1995.
virtual void AddTimer(TTimer *t)
Add timer to list of system timers.
virtual TTimer * RemoveTimer(TTimer *t)
Remove timer from list of system timers.
Basic time type with millisecond precision.
Handles synchronous and a-synchronous timer events.
virtual void TurnOff()
Remove timer from system timer list.
virtual void Start(Long_t milliSec=-1, Bool_t singleShot=kFALSE)
Starts the timer with a milliSec timeout.
virtual void TurnOn()
Add the timer to the system timer list.
void SetCommand(const char *command)
Set the interpreter command to be executed at time out.
void SetInterruptSyscalls(Bool_t set=kTRUE)
When the argument is true the a-synchronous timer (SIGALRM) signal handler is set so that interrupted...
void Reset()
Reset the timer.
Bool_t CheckTimer(const TTime &now)
Check if timer timed out.
void SetObject(TObject *object)
Set the object to be notified at time out.
static void SingleShot(Int_t milliSec, const char *receiver_class, void *receiver, const char *method)
This static function calls a slot after a given time interval.
void SetTime(Long_t milliSec)
virtual Bool_t Notify()
Notify when timer times out.
static constexpr double ms