L4Re - L4 Runtime Environment
|
Loop hooks mixin for integrating a timeout queue into the server loop. More...
Public Member Functions | |
l4_timeout_t | timeout () |
get the time for the next timeout | |
void | setup_wait (l4_utcb_t *utcb, L4::Ipc_svr::Reply_mode mode) |
setup_wait() for the server loop | |
L4::Ipc_svr::Reply_mode | before_reply (l4_msgtag_t, l4_utcb_t *) |
server loop hook | |
int | add_timeout (Timeout *timeout, l4_kernel_clock_t time) |
Add a timout to the queue for time time. More... | |
int | remove_timeout (Timeout *timeout) |
Remove timeout from the queue. More... | |
![]() | |
Server_iface () | |
Make a server interface. | |
virtual int | alloc_buffer_demand (Demand const &demand)=0 |
Tells the server to allocate buffers for the given demand. More... | |
virtual L4::Cap< void > | get_rcv_cap (int index) const =0 |
Get capability slot allocated to the given receive buffer. More... | |
virtual int | realloc_rcv_cap (int index)=0 |
Allocate a new capability for the given receive buffer. More... | |
template<typename T > | |
L4::Cap< T > | rcv_cap (int index) const |
Get given receive buffer as typed capability. More... | |
L4::Cap< void > | rcv_cap (int index) const |
Get receive cap with the given index as generic (void) type. More... | |
Data Fields | |
Timeout_queue | queue |
Use this timeout queue. | |
Additional Inherited Members | |
![]() | |
typedef L4::Type_info::Demand | Demand |
Data type expressing server-side demand for receive buffers. | |
Loop hooks mixin for integrating a timeout queue into the server loop.
HOOKS | has to inherit from Timeout_queue_hooks<> and provide the functions now() that has to return the current time. |
BR_MAN | This used as a base class for and provides the API for selecting the buffer register (BR) that is used to store the timeout value. This is usually L4Re::Util::Br_manager or L4::Ipc_svr::Br_manager_no_buffers. |
Definition at line 159 of file ipc_timeout_queue.
|
inlinevirtual |
Add a timout to the queue for time time.
timeout | The timeout object to add into the queue (must not be in any queue currently). |
time | The time when the timeout shall expire. |
Implements L4::Ipc_svr::Server_iface.
Definition at line 211 of file ipc_timeout_queue.
|
inlinevirtual |
Remove timeout from the queue.
timeout | The timeout object to be removed from the queue. |
Implements L4::Ipc_svr::Server_iface.
Definition at line 224 of file ipc_timeout_queue.