|
Boost Users : |
Subject: Re: [Boost-users] Asio timer - how to restart it?
From: Sergei Politov (spolitov_at_[hidden])
Date: 2008-10-23 10:18:15
Hi,
> As you can see to on_time_out() is called immediately after
> expires_from_now() call,
> with no actual time out.
>
> How do I restart to timer in the right way?
>
You could check error code in handler, in case of cancellation (including
settings new expiration time) it contains the value
boost::asio::error::operation_aborted.
Best Regards,
Sergei
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