Pumpkin, Inc.

Pumpkin User Forums

OSTimeout() behaviour

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

OSTimeout() behaviour

Postby luben » Fri Dec 15, 2000 11:36 am


I just want to ask if I have a
OSwaitBinSem(_sem1, 10, _label)
and after that I check for OSTimeout().
Is the flag cleared after checking? I mean, if I use OSTimeout() again some rows later (but not returning the control to scheduler) will it return the same value?


Posts: 324
Joined: Sun Nov 19, 2000 12:00 am
Location: Sofia, Bulgaria

Re: OSTimeout() behaviour

Postby aek » Sat Dec 16, 2000 9:41 am

Hi Luben.

Good question! The flag is not cleared after checking. It's cleared upon return to the scheduler via a context switch.

So, if you use OSTimedOut() again some rows later, without returning control to the scheduler, it will remain the same value.

See the Reference chapter in the User Manual for more info and an example.

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

Return to Coding

Who is online

Users browsing this forum: No registered users and 4 guests