RTX51 full: os_wait() returns too early

Hello!

Assuming an OS timer tick interval of 5ms, os_wait() returns exactly after 5ms with the code as follows:

while (1) {
    os_wait(K_TMO, 1, 0);
}

However, with the code like that:

while (1) {
    os_wait(K_SIG, 255, 0);
    os_wait(K_TMO, 1, 0);
}

the second call to os_wait returns after something beetween 0 and 5ms.

I have read somewhere that os_wait(K_TMO, 1, 0) only waits until the next timer tick but why only in the second case?

Regards,
Markus

Parents Reply Children
No data
More questions in this forum