thrd_yield Subroutine
Purpose
This subroutine yields to other threads and allows them to run first.
Library
Standard C Library (libc.a)
Syntax
#include <threads.h>
void thrd_yield(void);
Description
The thrd_yield subroutine allows other threads to run, even if the current thread continues to run.
Parameters
None
Return Values
The thrd_yield subroutine returns no value.
Files
Item | Description |
---|---|
threads.h | Standard macros, data types, and subroutines are defined by the threads.h file. |