12 Oct
2006
12 Oct
'06
4:09 p.m.
Roland Schwarz wrote:
No, the same reasoning that you have done applies, simply you might sleep too short.
Not true. By giving sleep() a relative time, I want sleep() to return after that time (plus some, due to delay in getting a timeslice). Now, if the OS API requires an absolute time, sleep() needs to convert to absolute. If it is interrupted between calculating that absolute time and the OsSleep(), it just sleeps in preemption instead of OsSleep. Sebastian Redl