$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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