#include <waitqueue.h>
Public Member Functions | |
| bool | isempty () const |
| Checks whether the queue is empty. | |
| Timeval | delay () const |
| Returns how long to wait before next Callback is to be run. | |
| Timeval | delay (const timeval &now) const |
| Returns how long to wait before next Callback is to be run. | |
| void | put (Callback &callback, const timeval &tv) |
| Puts a new Callback that is to be run at a given (absolute) time in the queue. | |
| Callback * | get () |
| Gets a Callback that is to be run now from the WaitQueue. | |
| Callback * | get (const timeval &now) |
| Gets a Callback that is to be run now from the WaitQueue. | |
| bool | cleanup () |
| Removes completed callbacks from WaitQueue. | |
Classes | |
| class | Waiter |
| class | WaiterComparator |
| bool WaitQueue::isempty | ( | ) | const |
| Timeval WaitQueue::delay | ( | ) | const |
| Timeval WaitQueue::delay | ( | const timeval & | now | ) | const |
| void WaitQueue::put | ( | Callback & | callback, | |
| const timeval & | tv | |||
| ) |
Puts a new Callback that is to be run at a given (absolute) time in the queue.
| callback | is to be run at tv | |
| tv | is the absolute time for running callback |
| Callback * WaitQueue::get | ( | ) |
| Callback * WaitQueue::get | ( | const timeval & | now | ) |
| bool WaitQueue::cleanup | ( | ) |
1.5.1