|
xorp
|
Entries can be added to the queue at any rate. More...
#include <delay_queue.hh>
Public Types | |
|
typedef XorpCallback1< void, _Entry >::RefPtr | DelayCallback |
Public Member Functions | |
| DelayQueue (EventLoop &eventloop, uint32_t delay, DelayCallback forward) | |
| void | add (_Entry entry) |
| Add an entry to the queue. | |
| void | fire () |
| Start the timer running but don't add anything to the queue. | |
Private Member Functions | |
| void | next () |
| Invoked from the timer to take the next entry from the queue. | |
Private Attributes | |
| EventLoop & | _eventloop |
| deque< _Entry > | _queue |
| const uint32_t | _delay |
| DelayCallback | _forward |
| XorpTimer | _timer |
Entries can be added to the queue at any rate.
The callback is invoked at the specified period to remove an entry from the queue.
| void DelayQueue< _Entry >::add | ( | _Entry | entry | ) |