Boost logo

Boost Users :

From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2006-10-12 12:09:38


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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net