102 template <
typename T>
121 void operator=(
const Timer<T> & ) ;
129 template <
typename T>
137 template <
typename T>
143 template <
typename T>
146 m_event_handler.onException( e ) ;
virtual ~AbstractTimer()
Destructor.
virtual void onTimeoutException(std::exception &)
Final override from GNet::AbstractTimer.
virtual void onTimeout()
Final override from GNet::AbstractTimer.
void startTimer(unsigned int time)
Starts the timer.
A singleton which maintains a list of all Timer objects, and interfaces to the event loop on their be...
AbstractTimer()
Default constructor.
A base class for classes that handle asynchronous socket events.
virtual void onTimeoutException(std::exception &)=0
Called by the event loop when the onTimeout() override throws.
void cancelTimer()
Cancels the timer.
A timer class template in which the timeout is delivered to the specified method. ...
virtual void onTimeout()=0
Called when the timer expires (or soon after).
Timer(T &t, method_type m, EventHandler &exception_handler)
Constructor.
A timer base class that calls a pure virtual method on expiry.