|
xorp
|
#include <timer.hh>
Public Member Functions | |
| bool | scheduled () const |
| const TimeVal & | expiry () const |
| bool | time_remaining (TimeVal &remain) const |
| Get the remaining time until the timer expires. | |
| void | schedule_now (int priority=XorpTask::PRIORITY_DEFAULT) |
| Expire the XorpTimer object when the TimerList is next run. | |
| void | schedule_at (const TimeVal &when, int priority=XorpTask::PRIORITY_DEFAULT) |
| Schedule the XorpTimer object at a given time. | |
| void | schedule_after (const TimeVal &wait, int priority=XorpTask::PRIORITY_DEFAULT) |
| Schedule the XorpTimer object to expire in wait after the current time. | |
| void | schedule_after_ms (int ms, int priority=XorpTask::PRIORITY_DEFAULT) |
| Schedule the XorpTimer object. | |
| void | reschedule_after (const TimeVal &wait) |
| Reschedule the XorpTimer object. | |
| void | reschedule_after_ms (int ms) |
| Reschedule the XorpTimer object. | |
| void | unschedule () |
| Unschedule the XorpTimer object. | |
| void | clear () |
| Release reference to underlying state. | |
| XorpTimer (TimerList *list, BasicTimerCallback cb) | |
| XorpTimer (const XorpTimer &) | |
| XorpTimer & | operator= (const XorpTimer &) |
| TimerNode * | node () const |
Private Member Functions | |
| XorpTimer (TimerNode *n) | |
Private Attributes | |
| TimerNode * | _node |
Friends | |
| class | TimerList |
XorpTimer class.
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.
| void XorpTimer::reschedule_after | ( | const TimeVal & | wait | ) | [inline] |
| void XorpTimer::reschedule_after_ms | ( | int | ms | ) | [inline] |
| void XorpTimer::schedule_after_ms | ( | int | ms, |
| int | priority = XorpTask::PRIORITY_DEFAULT |
||
| ) | [inline] |
| bool XorpTimer::scheduled | ( | ) | const [inline] |
| bool XorpTimer::time_remaining | ( | TimeVal & | remain | ) | const [inline] |
Get the remaining time until the timer expires.
| 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. |
| void XorpTimer::unschedule | ( | ) | [inline] |