Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio] 1.37.0: trouble with multiple timers and serial line port
From: Igor R (boost.lists_at_[hidden])
Date: 2009-03-11 09:56:29


>                timer1_.cancel(); // Q: Is this necessary here?
>                timer1_.expires_from_now(boost::posix_time::milliseconds(1000));
>                timer1_.async_wait(bind(MemFun1, this, counter));

I can't understand why you want to cancel the timer here.
Anyway, you'd better post some minimal code that compiles and runs (it
shouldn't be classes with ports etc., just main(), timers and plain
function handlers).


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