Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8600: wait_for_any hangs, if called with multiple copies of shared_future referencing same task
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-05-24 19:58:04
#8600: wait_for_any hangs, if called with multiple copies of shared_future
referencing same task
---------------------------------------------------+------------------------
Reporter: Martin Apel <martin.apel@â¦> | Owner: viboes
Type: Bugs | Status: assigned
Milestone: To Be Determined | Component: thread
Version: Boost 1.53.0 | Severity: Problem
Resolution: | Keywords:
---------------------------------------------------+------------------------
Comment (by viboes):
What would you expect from the following code
{{{
int main(int argc, char* argv[])
{
boost::packaged_task<int>
pt(calculate_the_answer_to_life_the_universe_and_everything);
boost::future<int> fi1 = pt.get_future();
boost::thread task(boost::move(pt)); // launch task on a thread
boost::wait_for_any(fi1, fi1);
std::cout << "Wait for any returned\n";
return (0);
}
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8600#comment:4> 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:13 UTC