This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

CMSIS-RTOS RTX: something like "osDelay(0)" possible?

Hi,

I like to do a manual thread switch like osDelay will switch to a new thread, but without a timeout value, simply something like osDelay(0).

As far as i can see, there is an function osThreadYield, but this function switches to the next thread with an equal priority as the switching thread. osDelay will block the current thread and put in on the delay list, but switches to the next ready thread in the order of the thread priorities, exactly what i want, unfortunately, an delay value of 0 is not allowed there. Is there another way to do thi styp of manual thread switching?

Martin