Boost logo

Boost Users :

Subject: [Boost-users] boost::asio::deadline_timer cancel and expires_from_now
From: jupiter (jupiter.hce_at_[hidden])
Date: 2017-05-08 23:43:55


Hi,

Is it necessary to call the timer.cancel() before timer.expires_from_now? I
think it is not just unnecessary, it will be a bug to call the
timer.cancel() before timer.expires_from_now, I think that will run the
cancel if the previous timer is not expired, is it correct?

Thank you



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