21 #ifndef G_NET_TIMER_LIST_H
22 #define G_NET_TIMER_LIST_H
59 G_EXCEPTION( NoInstance ,
"no TimerList instance" ) ;
92 std::string
report()
const ;
101 void collectGarbage() ;
105 typedef std::list<TimerBase*> List ;
108 bool m_run_on_destruction ;
A subsecond-resolution timestamp based on a time_t.
TimerList()
Default constructor.
Overload discriminator class for TimerList.
A singleton which maintains a list of all Timer objects, and interfaces to the event loop on their be...
static TimerList & instance()
Singleton access. Throws an exception if none.
G::EpochTime interval(bool &infinite) const
Returns the interval to the first timer expiry.
void add(TimerBase &)
Adds a timer.
void doTimeouts()
Triggers the timeout callbacks of any expired timers.
~TimerList()
Destructor. Any expired timers have their timeouts called.
void update(TimerBase &)
Called when a timer changes its value.
An interface used by GNet::TimerList to keep track of pending timeouts and to deliver timeout events...
std::string report() const
Returns a line of text reporting the status of the timer list.