class XorpTimer

XorpTimer class. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods


Detailed Description

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 TimeVal&  expiry ()

expiry

[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:

remainthe 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:

msmilliseconds from the current time.
void  reschedule_after_ms (int ms)

reschedule_after_ms

Reschedule the XorpTimer object.

Parameters:

msmilliseconds from the most recent expiry.
void  unschedule ()

unschedule

Unschedule the XorpTimer object. The XorpTimer callback is not invoked.

void  clear ()

clear

Release reference to underlying state.

 XorpTimer ()

XorpTimer

 XorpTimer (TimerList* list, BasicTimerCallback cb)

XorpTimer

 XorpTimer (const XorpTimer&)

XorpTimer

 ~XorpTimer ()

~XorpTimer

XorpTimer&  operator= (const XorpTimer&)

operator=

TimerNode*  node ()

node

[const]


Generated by: pavlin on possum.icir.org on Thu Mar 9 04:41:55 2006, using kdoc $.