28 #include "rtos/Kernel.h" 29 #include "rtos/mbed_rtos_types.h" 30 #include "rtos/internal/mbed_rtos1_types.h" 31 #include "rtos/internal/mbed_rtos_storage.h" 33 #include "platform/NonCopyable.h" 75 uint32_t
set(uint32_t flags);
83 uint32_t
clear(uint32_t flags = 0x7fffffff);
100 uint32_t
wait_all(uint32_t flags = 0, uint32_t millisec = osWaitForever,
bool clear =
true);
110 uint32_t
wait_all_for(uint32_t flags, Kernel::Clock::duration_u32 rel_time,
bool clear =
true);
120 uint32_t
wait_all_until(uint32_t flags, Kernel::Clock::time_point abs_time,
bool clear =
true);
130 uint32_t
wait_any(uint32_t flags = 0, uint32_t millisec = osWaitForever,
bool clear =
true);
140 uint32_t
wait_any_for(uint32_t flags, Kernel::Clock::duration_u32 rel_time,
bool clear =
true);
150 uint32_t
wait_any_until(uint32_t flags, Kernel::Clock::time_point abs_time,
bool clear =
true);
159 void constructor(
const char *name =
nullptr);
160 uint32_t wait_for(uint32_t flags, uint32_t opt, Kernel::Clock::duration_u32 rel_time,
bool clear);
161 uint32_t wait_until(uint32_t flags, uint32_t opt, Kernel::Clock::time_point abs_time,
bool clear);
163 #if MBED_CONF_RTOS_PRESENT 164 osEventFlagsId_t _id;
165 mbed_rtos_storage_event_flags_t _obj_mem;
~EventFlags()
EventFlags destructor.
The EventFlags class is used to control event flags or wait for event flags other threads control...
uint32_t clear(uint32_t flags=0x7fffffff)
Clear the specified event flags.
Prevents generation of copy constructor and copy assignment operator in derived classes.
uint32_t wait_all_for(uint32_t flags, Kernel::Clock::duration_u32 rel_time, bool clear=true)
Wait for all of the specified event flags to become signaled.
uint32_t wait_any_until(uint32_t flags, Kernel::Clock::time_point abs_time, bool clear=true)
Wait for any of the specified event flags to become signaled.
uint32_t wait_all(uint32_t flags=0, uint32_t millisec=osWaitForever, bool clear=true)
Wait for all of the specified event flags to become signaled.
uint32_t wait_all_until(uint32_t flags, Kernel::Clock::time_point abs_time, bool clear=true)
Wait for all of the specified event flags to become signaled.
EventFlags()
Create and initialize an EventFlags object.
uint32_t wait_any_for(uint32_t flags, Kernel::Clock::duration_u32 rel_time, bool clear=true)
Wait for any of the specified event flags to become signaled.
uint32_t wait_any(uint32_t flags=0, uint32_t millisec=osWaitForever, bool clear=true)
Wait for any of the specified event flags to become signaled.