Pumpkin, Inc.

Pumpkin User Forums

OSWaitEFlag with timeout

If you can't make Salvo do what you want it to do, post it here.

OSWaitEFlag with timeout

Postby aek » Wed May 23, 2007 3:30 am

Whenever you wait with a timeout, you must use OSTimedOut() to discern whether you timed out or not.

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

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: OSWaitEFlag with timeout

Postby gcarrelli » Wed May 23, 2007 11:19 am

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.

gcarrelli
 
Posts: 10
Joined: Tue May 22, 2007 11:00 pm
Location: Cincinnati


Return to Coding

Who is online

Users browsing this forum: No registered users and 2 guests

cron