class XorpTimer
|
XorpTimer class. More... |
|
|
Public Methods
Timers allow callbacks to be made at a specific time in the future.
They are ordinarily created via TimerList methods, and they
must be associated with an TimerList object in order to be
runnable.
See also: TimerList
bool scheduled ()
| scheduled |
[const]
Returns: true if the timer has been scheduled, and the callback
associated with this timer has not been called yet.
[const]
Returns: the expiry time of the XorpTimer
bool time_remaining (TimeVal& remain)
| time_remaining |
[const]
Get the remaining time until the timer expires.
Parameters:
remain | the return-by-reference value with the remaining
time until the timer expires. If the current time is beyond
the expire time (e.g., if we are behind schedule with the timer
processing), the return time is zero.
|
Returns: true if the remaining time has meaningful value (e.g.,
if timer was scheduled), otherwise false.
void schedule_now ()
| schedule_now |
Expire the XorpTimer object when the TimerList is next run.
void schedule_at (const TimeVal& when)
| schedule_at |
Schedule the XorpTimer object at a given time.
void schedule_after (const TimeVal& wait)
| schedule_after |
Schedule the XorpTimer object to expire in wait
after the current time.
void schedule_after_ms (int ms)
| schedule_after_ms |
Schedule the XorpTimer object.
Parameters:
ms | milliseconds from the current time.
|
void reschedule_after_ms (int ms)
| reschedule_after_ms |
Reschedule the XorpTimer object.
Parameters:
ms | milliseconds from the most recent expiry.
|
void unschedule ()
| unschedule |
Unschedule the XorpTimer object. The XorpTimer callback is not
invoked.
Release reference to underlying state.
[const]
Generated by: pavlin on possum.icir.org on Mon Jun 9 13:23:43 2003, using kdoc 2.0a54+XORP. |