Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost asio deadline_timer, bug?
From: Allan Nielsen (a_at_[hidden])
Date: 2011-08-20 05:22:02


I see, thank you :)

On Fri, Aug 19, 2011 at 11:35 AM, Marat Abrarov <abrarov_at_[hidden]> wrote:

> Hi, Allan.
>
> > Is this a bug, or am I doing something wrong?
>
> Note that deadline_timer always (!) invokes wait handler, even it was
> successfully cancelled (int res = timer1.cancel();
> assert(res > 0);):
>
> http://www.boost.org/doc/libs/1_47_0/doc/html/boost_asio/reference/basic_deadline_timer/cancel/overload1.html
> ~~~
> The handler for each cancelled operation will be invoked
> with the boost::asio::error::operation_aborted error code.
> ~~~
>
> Regards,
> Marat Abrarov.
>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>



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