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... | |
| 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().
| delayMilliseconds | The delay in milliseconds. |
| callback | This 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.
1.8.6