This function is declared in the kos/thread.h file.
void KosThreadYield(void);
Passes execution of the thread that called it to the next thread.
The KosThreadYield() call is analogous to the KosThreadSleep() call with a zero value for mdelay.