Technical Support

RTX51: WHAT DOES OS_WAIT(K_TMO, 0, 0) DO?

QUESTION

In my RTX51 program, what happens when I execute the following code?

os_wait (K_TMO, 0, 0);

Does the kernel switch tasks or does it return immediately?

ANSWER

In RTX51, the following function call...

os_wait (K_TMO, 0, 0);

does nothing. It returns without transferring control to any other task. To transfer to another waiting task, you must use the following:

os_wait (K_TMO, 1, 0);

Last Reviewed: Monday, June 07, 2004


Did this article provide the answer you needed?
 
Yes
No
Not Sure