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