#include <rtl.h>
OS_RESULT os_evt_wait_or (
U16 wait_flags, /* Bit pattern of events to wait for */
U16 timeout ); /* Length of time to wait for event */
Description
The os_evt_wait_or function waits for one of the events
specified in the wait_flags to occur. The function only waits
on events whose corresponding flags have been set to 1 in the
wait_flags parameter. The function can wait on as many as 16
different events.
You can use the timeout argument to specific the length of
time after which the function must return even if none of the events
have occurred. You can use any value of timeout with the exception of
0xFFFF, which you can use to specify an indefinite timeout. The unit
of measure of the timeout argument is the number of system
intervals.
The os_evt_wait_or function returns when at least one of
the events specified in the wait_flags has occurred or when
the timeout expires. The event flag or flags that caused the
os_evt_wait_or function to complete are cleared before the
function returns. You can identify those event flags with
os_evt_get function later.
The os_evt_wait_or function is in the RL-RTX library. The
prototype is defined in rtl.h.
note
Each task has its own 16 bit wait flag.
Return Value
The os_evt_wait_or function returns a value to indicate
whether an event occurred or the timeout expired.
Return Value
Description
OS_R_EVT
At least one of the flags specified
by wait_flags has been set.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.