L4Re Operating System Framework
Interface and Usage Documentation
|
A polling timeout based on the L4Re clock. More...
#include <poll_timeout_kipclock>
Public Member Functions | |
Poll_timeout_kipclock (unsigned poll_time_us) | |
Initialise relative timeout in microseconds. | |
void | set (unsigned poll_time_us) |
(Re-)Set relative timeout in microseconds | |
bool | test (bool expression=true) |
Test whether timeout has expired. | |
bool | timed_out () const |
Query whether timeout has expired. | |
A polling timeout based on the L4Re clock.
This class allows to conveniently add a timeout to a polling loop.
The original
is converted to
Definition at line 38 of file poll_timeout_kipclock.
|
inline |
Initialise relative timeout in microseconds.
poll_time_us | Polling timeout in microseconds. |
Definition at line 45 of file poll_timeout_kipclock.
References set().
|
inline |
(Re-)Set relative timeout in microseconds
poll_time_us | Polling timeout in microseconds. |
Definition at line 54 of file poll_timeout_kipclock.
References l4_kip_clock(), and l4re_kip().
Referenced by Poll_timeout_kipclock().
|
inline |
Test whether timeout has expired.
expression | Optional expression. |
false | The timeout has expired or the given expression returned false. |
true | The timeout has not expired and the optionally given expression returns true. |
Definition at line 68 of file poll_timeout_kipclock.
References l4_kip_clock(), and l4re_kip().
|
inline |
Query whether timeout has expired.
Definition at line 80 of file poll_timeout_kipclock.