88 void GNet::AbstractTimer::doTimeout()
97 catch( std::exception & e )
99 G_DEBUG(
"GNet::AbstractTimer::doTimeout: exception from timeout handler being passed back: " << e.what() ) ;
100 onTimeoutException( e ) ;
A private implementation class used by GNet::AbstractTimer.
static EpochTime now()
Returns the current epoch time.
void remove(AbstractTimer &)
Removes a timer from the list.
virtual ~AbstractTimer()
Destructor.
void add(AbstractTimer &)
Adds a timer. Used by Timer::Timer().
void update(G::DateTime::EpochTime previous_soonest)
Called when one of the list's timers has changed.
G::DateTime::EpochTime soonest() const
Returns the time of the first timer to expire, or zero if none.
void startTimer(unsigned int time)
Starts the timer.
Overload discriminator class for TimerList.
AbstractTimer()
Default constructor.
static TimerList & instance()
Singleton access. Throws an exception if none.
void cancelTimer()
Cancels the timer.
static bool exists()
Returns true if an instance exists.