theCore C++ embedded framework
ecl::this_thread Namespace Reference

Functions

void yield ()
 Yields current thread. More...
 
void sleep_for (uint32_t ms)
 Put task at sleep for given amount of milliseconds. More...
 
thread_handle get_handle ()
 Gets a thread handle of currently running thread. More...
 

Function Documentation

◆ yield()

void ecl::this_thread::yield ( )

Yields current thread.

As for FreeRTOS whether current task will be rescheduled or not depends on FreeRTOS configuration.

◆ sleep_for()

static void ecl::this_thread::sleep_for ( uint32_t  ms)
inline

Put task at sleep for given amount of milliseconds.

Parameters
[in]msMilliseconds to sleep.
Here is the call graph for this function:

◆ get_handle()

ecl::thread_handle ecl::this_thread::get_handle ( )

Gets a thread handle of currently running thread.

Returns
Current thread handle
Here is the call graph for this function: