/* Pass control to next thread that is in READY state.  */
osStatus_t osThreadYield(void)
/* Pass control to next thread that is in READY state.  */
osStatus_t osThreadYield(void)
{
	if (k_is_in_isr()) {
		return osErrorISR;
	}
	k_yield();
	return osOK;
}