27 #include "platform/mbed_toolchain.h"    28 #include "rtos/Kernel.h"    29 #include "rtos/mbed_rtos_types.h"    69 namespace ThisThread {
   112 MBED_DEPRECATED_SINCE(
"mbed-os-6.0.0", 
"Pass a chrono duration, not an integer millisecond count. For example use `5s` rather than `5000`.")
   123 uint32_t 
flags_wait_all_for(uint32_t flags, Kernel::Clock::duration_u32 rel_time, 
bool clear = 
true);
   139 MBED_DEPRECATED_SINCE(
"mbed-os-6.0.0", 
"Pass a chrono time_point, not an integer millisecond count. For example use `Kernel::Clock::now() + 5s` rather than `Kernel::get_ms_count() + 5000`.")
   154 uint32_t 
flags_wait_all_until(uint32_t flags, Kernel::Clock::time_point abs_time, 
bool clear = 
true);
   165 MBED_DEPRECATED_SINCE(
"mbed-os-6.0.0", 
"Pass a chrono duration, not an integer millisecond count. For example use `5s` rather than `5000`.")
   176 uint32_t 
flags_wait_any_for(uint32_t flags, Kernel::Clock::duration_u32 rel_time, 
bool clear = 
true);
   192 MBED_DEPRECATED_SINCE(
"mbed-os-6.0.0", 
"Pass a chrono time_point, not an integer millisecond count. For example use `Kernel::Clock::now() + 5s` rather than `Kernel::get_ms_count() + 5000`.")
   207 uint32_t 
flags_wait_any_until(uint32_t flags, Kernel::Clock::time_point abs_time, 
bool clear = 
true);
   215 MBED_DEPRECATED_SINCE(
"mbed-os-6.0.0", 
"Pass a chrono duration, not an integer millisecond count. For example use `5s` rather than `5000`.")
   223 void sleep_for(Kernel::Clock::duration_u32 rel_time);
   236 MBED_DEPRECATED_SINCE(
"mbed-os-6.0.0", 
"Pass a chrono time_point, not an integer millisecond count. For example use `Kernel::Clock::now() + 5s` rather than `Kernel::get_ms_count() + 5000`.")
   247 void sleep_until(Kernel::Clock::time_point abs_time);
   280     uint32_t flags_wanted;
   285 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.