220 Connect(
this,
"Timeout()",
"TTimer",
this,
"TurnOff()");
222 Disconnect(
this,
"Timeout()",
this,
"TurnOff()");
246 Disconnect(
this,
"Timeout()",
this,
"TurnOff()");
259 void *receiver,
const char *method)
263 receiver_class, receiver, method);
270 "TTimer", &singleShotCleaner,
"TurnOn()");
Option_t Option_t TPoint TPoint const char mode
R__EXTERN void * gTQSender
R__EXTERN TSystem * gSystem
void Add(TObject *obj) override
void Delete(Option_t *option="") override
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=nullptr, void *receiver=nullptr, const char *slot=nullptr)
Disconnects signal of this object from slot of receiver.
virtual Int_t IndexOf(const TObject *obj) const
Return index of object in collection.
virtual ~TSingleShotCleaner()
void TurnOn() override
Add the timer to the system timer list.
Bool_t Notify() override
This method must be overridden to handle object notification (the base implementation is no-op).
virtual void ResetTimer(TTimer *)
virtual TList * GetListOfTimers() const
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)
TTimer(const TTimer &)=delete
Bool_t Notify() override
Notify when timer times out.
Bool_t IsRunning()
This function checks if the timer is running within gSystem (Has been started and did not finish yet)...