![]() |
L4Re Operating System Framework
Interface and Usage Documentation
|
Timeout queue to be used in l4re server loop. More...
#include <ipc_timeout_queue>
Public Types | |
| typedef L4::Ipc_svr::Timeout | Timeout |
| Provide a local definition of Timeout for backward compatibility. | |
Public Member Functions | |
| l4_kernel_clock_t | next_timeout () const |
| Get the time for the next timeout. | |
| bool | timeout_expired (l4_kernel_clock_t now) const |
| Determine if a timeout has happened. | |
| void | handle_expired_timeouts (l4_kernel_clock_t now) |
| run the callbacks of expired timeouts | |
| void | add (Timeout *timeout, l4_kernel_clock_t time) |
| Add a timeout to the queue. | |
| void | remove (Timeout *timeout) |
| Remove timeout from the queue. | |
Timeout queue to be used in l4re server loop.
Definition at line 55 of file ipc_timeout_queue.
|
inline |
Add a timeout to the queue.
| timeout | timeout object to add |
| time | the time when the timeout expires |
Definition at line 111 of file ipc_timeout_queue.
|
inline |
run the callbacks of expired timeouts
| now | the current time. |
Definition at line 91 of file ipc_timeout_queue.
References L4::Ipc_svr::Timeout::expired().
|
inline |
Get the time for the next timeout.
Definition at line 65 of file ipc_timeout_queue.
Referenced by timeout_expired().
|
inline |
Remove timeout from the queue.
| timeout | timeout to remove from timeout queue |
Definition at line 126 of file ipc_timeout_queue.
|
inline |
Determine if a timeout has happened.
| now | The current time. |
| true | There is at least one expired timeout in the queue. false No expired timeout in the queue. |
Definition at line 81 of file ipc_timeout_queue.
References next_timeout().