Classes | Public Member Functions | List of all members
ndn::DelayedCallTable Class Reference

Public Member Functions

void callLater (Milliseconds delayMilliseconds, const Face::Callback &callback)
 Call callback() after the given delay. More...
 
void callTimedOut ()
 Call and remove timed-out callback entries. More...
 

Member Function Documentation

void ndn::DelayedCallTable::callLater ( Milliseconds  delayMilliseconds,
const Face::Callback callback 
)

Call callback() after the given delay.

This adds to the delayed call table which is used by callTimedOut().

Parameters
delayMillisecondsThe delay in milliseconds.
callbackThis calls callback() after the delay.
void ndn::DelayedCallTable::callTimedOut ( )

Call and remove timed-out callback entries.

Since callLater does a sorted insert into the delayed call table, the check for timed-out entries is quick and does not require searching the entire table.


The documentation for this class was generated from the following files: