Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio] Timer cancellation behavior
From: BKnoth (bknoth_at_[hidden])
Date: 2010-05-05 16:57:19


>
>
> The flow is not clear. Your io_service goes out of work and run()
> exits, then you call Restart()? All this happens on the same thread?
> If so, try to move reset() to the beginning of the function.
> _______________________________________________

Thanks for the reply, Igor

You spurred me to compile and test the example. Then I referred to the
Boost online book: http://en.highscore.de/cpp/boost/ and the Asynch IO
section. Now I have a better idea of how the asio timer works (the run()
call blocks and needs to be fired up in a separate thread).

- Bruce


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