26 #include "rtos/mbed_rtos_types.h" 66 namespace ThisThread {
196 uint32_t flags_wanted;
201 bool non_rtos_check_flags(
void *handle);
uint32_t flags_wait_all_until(uint32_t flags, uint64_t millisec, bool clear=true)
Wait for all of the specified Thread Flags to become signaled for the current thread.
uint32_t flags_clear(uint32_t flags)
Clears the specified Thread Flags of the currently running thread.
osThreadId_t get_id()
Get the thread id of the current running thread.
uint32_t flags_get()
Returns the Thread Flags currently set for the currently running thread.
uint32_t flags_wait_any_for(uint32_t flags, uint32_t millisec, bool clear=true)
Wait for any of the specified Thread Flags to become signaled for the current thread.
uint32_t flags_wait_all_for(uint32_t flags, uint32_t millisec, bool clear=true)
Wait for all of the specified Thread Flags to become signaled for the current thread.
uint32_t flags_wait_any(uint32_t flags, bool clear=true)
Wait for any of the specified Thread Flags to become signaled for the current thread.
void sleep_until(uint64_t millisec)
Sleep until a specified time in millisec The specified time is according to Kernel::get_ms_count().
uint32_t flags_wait_any_until(uint32_t flags, uint64_t millisec, bool clear=true)
Wait for any of the specified Thread Flags to become signaled for the current thread.
void yield()
Pass control to next equal-priority thread that is in state READY.
const char * get_name()
Get the thread name of the current running thread.
void sleep_for(uint32_t millisec)
Sleep for a specified time period in millisec:
uint32_t flags_wait_all(uint32_t flags, bool clear=true)
Wait for all of the specified Thread Flags to become signaled for the current thread.