ARM Technical Support Knowledge Articles

WILL OS_WAIT (K_SIG + K_TMO...) WORK?

Applies to: RTX51 Tiny Real-time Kernel

Answer


Information in this article applies to:


QUESTION

Does the os_wait function in RTX51 Tiny allow for the combination of signals and timeouts? In other words, can I wait for a signal and a timeout with a single call to os_wait?

ANSWER

Yes. For example:

os_wait (K_TMO + K_SIG, 50, 0);

waits for a signal or 50 ticks, whichever comes first.

The return value from os_wait specifies what caused the function to return.

MORE INFORMATION

Article last edited on: 2005-07-15 13:22:17

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential