Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio] deadline_timer callback is not called
From: Daniele Barzotti (daniele.barzotti_at_[hidden])
Date: 2009-10-14 13:13:35


Igor R ha scritto:
>
>> Yes, the setTimer is called, but the timer callback not!
>
> You call expires_from_now and async_wait from setTimer(), and the
> handler is not called? Well, that's weird.
> Ensure you pass reasonable time duration. Try to use the overload that
> returns an error:
> boost::system::error_code er;
> expires_from_now(seconds(1), er);
>

Oh, I'm sorry. It was my fault. I forgot to remove a call, all these
test make me crazy!! :-P

Calling:

rx_timer_.get_io_service().post(boost::bind(&WaveStream::StartTimer, this));

the StartTimer is not called!!!

So...
The io_service should be running but the post() does not work so, what
can I check?

Thanks for the support!
Daniele.


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