26 #include "cmsis_os2.h"    27 #include "mbed_rtos1_types.h"    28 #include "mbed_rtos_storage.h"    29 #include "platform/Callback.h"    30 #include "platform/mbed_toolchain.h"    31 #include "platform/NonCopyable.h"    32 #include "rtos/Semaphore.h"    33 #include "rtos/Mutex.h"    72 namespace ThisThread {
 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.