Page 1 of 1

OSWaitEFlag with timeout

PostPosted: Wed May 23, 2007 3:30 am
by aek
Whenever you wait with a timeout, you must use OSTimedOut() to discern whether you timed out or not.

------------------


Re: OSWaitEFlag with timeout

PostPosted: Wed May 23, 2007 11:19 am
by gcarrelli
In my code I am waiting for an EFlag with specified timeout (OS_WaitEFlag).

Question: Do I have to call OSTimedOut () after the OS_WaitEFlag () to test for the case of a timeout or can I just test the EFlag bits properly – and assume that a timeout occurred if the bits are all clear?

The Salvo User Manual states that the EFlag is undefined after a timeout. Does this mean I am forced to specifically test for an OSTimedOut () – i.e. can just test the bits?

Thanks.