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