HTL_thread_yield
Yields the CPU control right of a thread.
Interface Definition
int HTL_thread_yield(void);
Description
HTL_thread_yield() is used to yield the CPU control right of the current thread and push the thread to its associated thread pool for the next scheduling.
Parameters
N/A
Return Value
- HTL_THREAD_SUCCESS: success.
- Other values: failure. For details, see the error code descriptions.
Example
ret = HTL_thread_yield();
Parent topic: Thread Functions