From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-05-16 19:13:57
Roland Schwarz wrote:
> What do you think are xtime's pitfalls in this [condition::timed_wait]
The problem is that xtime uses UTC time. The current system UTC time can
jump forward or backward as the system clock is adjusted manually or
automatically via NTP. So if the clock jumps backward two minutes at exactly
the wrong moment, a timed_wait that was supposed to wait one second will now
wait two minutes and one second.
On the other hand, if one is writing an event scheduler of some sort, it
would be natural to use UTC time even when monotonic time is available and
the above behavior might actually be desirable.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk