Boost logo

Boost Users :

Subject: Re: [Boost-users] [ASIO] Timer question
From: Bjarne Laursen (bla_at_[hidden])
Date: 2009-11-23 06:29:26


On Sat, 21 Nov 2009 14:24:35 +0100, Pau Garcia i Quiles
<pgquiles_at_[hidden]> wrote:

> One intriguing issue is if instead of setting the time back one our,
> you set the time forward one hour (15:19:10), the timer works. I don't
> have time to research why this happens (I was expecting the test to
> fail, too, as the point in time the timer is set to expire is never
> reached exactly but just passed by).

Well it doesn't really work either. The timer expires imidiatly becourse
the time has passed. But if the thread doesn't do anything else but wait
for that it will not wakeup before the original time has passed. If it
wakes though; the timer gets recalculated.

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

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