L4Re Operating System Framework
Interface and Usage Documentation
|
Functions | |
long | l4shmc_enable_signal (l4shmc_signal_t *signal) |
Enable a signal. | |
long | l4shmc_wait_any (l4shmc_signal_t **retsignal) |
Wait on any signal. | |
long | l4shmc_wait_any_try (l4shmc_signal_t **retsignal) |
Check whether any waited signal has an event pending. | |
long | l4shmc_wait_any_to (l4_timeout_t timeout, l4shmc_signal_t **retsignal) |
Wait for any signal with timeout. | |
long | l4shmc_wait_signal (l4shmc_signal_t *signal) |
Wait on a specific signal. | |
long | l4shmc_wait_signal_to (l4shmc_signal_t *signal, l4_timeout_t timeout) |
Wait on a specific signal, with timeout. | |
long | l4shmc_wait_signal_try (l4shmc_signal_t *signal) |
Check whether a specific signal has an event pending. | |
long l4shmc_enable_signal | ( | l4shmc_signal_t * | signal | ) |
Enable a signal.
signal | Signal to enable. |
0 | Success. |
<0 | Error. |
A signal must be enabled before waiting when the consumer waits on any signal. Enabling is not needed if the consumer waits for a specific signal or chunk.
|
inline |
Wait on any signal.
[out] | retsignal | Signal received. |
0 | Success. |
<0 | Error. |
long l4shmc_wait_any_to | ( | l4_timeout_t | timeout, |
l4shmc_signal_t ** | retsignal | ||
) |
Wait for any signal with timeout.
timeout | Timeout. | |
[out] | retsignal | Signal that has the event pending if any. |
0 | Success. |
<0 | Error. |
The return code indicates whether an event was pending or not. Success means an event was pending, if an receive timeout error is returned no event was pending.
|
inline |
Check whether any waited signal has an event pending.
[out] | retsignal | Signal that has the event pending if any. |
0 | Success. |
<0 | Error. |
The return code indicates whether an event was pending or not. Success means an event was pending, if an receive timeout error is returned no event was pending.
|
inline |
Wait on a specific signal.
signal | Signal to wait for. |
0 | Success. |
<0 | Error. |
long l4shmc_wait_signal_to | ( | l4shmc_signal_t * | signal, |
l4_timeout_t | timeout | ||
) |
Wait on a specific signal, with timeout.
signal | Signal to wait for. |
timeout | Timeout. |
0 | Success. |
<0 | Error. |
|
inline |
Check whether a specific signal has an event pending.
signal | Signal to check. |
0 | Success. |
<0 | Error. |
The return code indicates whether an event was pending or not. Success means an event was pending, if an receive timeout error is returned no event was pending.