|
Boost Users : |
Subject: Re: [Boost-users] [ASIO] When the work object is destroyed?
From: Igor R (boost.lists_at_[hidden])
Date: 2010-02-16 06:32:43
> All works but, if when I create an object after the thread is ended, the io_service returns immediately..
I couldn't understand from your description and example what problem
you're talking about, but if you mean that you try to call
io_service::run() again, after the previous call to io_service::run()
exited -- then you have to interleave these calls with
io_service::reset().
http://www.boost.org/doc/libs/1_42_0/doc/html/boost_asio/reference/io_service/run/overload1.html
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