Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4898: Incorect behaviour of function boost::asio::io_service::run() in case when io_service::work was reinitialized
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-11-25 21:12:12
#4898: Incorect behaviour of function boost::asio::io_service::run() in case when
io_service::work was reinitialized
--------------------------------------------------+-------------------------
Reporter: Alexander Korkov <korkov@â¦> | Owner: chris_kohlhoff
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: asio
Version: Boost 1.44.0 | Severity: Problem
Resolution: invalid | Keywords:
--------------------------------------------------+-------------------------
Changes (by chris_kohlhoff):
* status: new => closed
* resolution: => invalid
Comment:
You need to call io_service.reset():
http://www.boost.org/doc/libs/1_45_0/doc/html/boost_asio/reference/io_service/reset.html
In your first example, deleting the work object makes the io_service run
out of work. In the second, you call stop(). Both situations require a
call to reset() to clear the "stopped" flag before calling run() again.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4898#comment:2> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC