21 #ifndef G_NET_TIMER_LIST__H
22 #define G_NET_TIMER_LIST__H
64 G_EXCEPTION( NoInstance ,
"no TimerList instance" ) ;
100 std::string
report()
const ;
112 void collectGarbage() ;
122 typedef std::list<Value> List ;
124 TimerBase * m_soonest ;
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...
void add(TimerBase &, ExceptionHandler &)
Adds a timer.
An abstract interface for handling exceptions thrown out of event-loop callbacks (socket events...
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 doTimeouts()
Triggers the timeout callbacks of any expired timers.
static bool exists()
Returns true if instance() exists.
~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...
void disarm(ExceptionHandler *)
Resets any matching ExceptionHandler pointers.
std::string report() const
Returns a line of text reporting the status of the timer list.