Page 1 of 1

OSTimeout() behaviour

PostPosted: Fri Dec 15, 2000 11:36 am
by luben
Hello,

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?

Regards
Luben


Re: OSTimeout() behaviour

PostPosted: Sat Dec 16, 2000 9:41 am
by aek
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.