Re: [Boost-bugs] [Boost C++ Libraries] #11220: future<>::wait_for() on continuation doesn't return after timeout.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11220: future<>::wait_for() on continuation doesn't return after timeout.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-04-22 09:40:47


#11220: future<>::wait_for() on continuation doesn't return after timeout.
-------------------------------------+-------------------------------------
  Reporter: Konrad Zemek | Owner: anthonyw
  <konrad.zemek@…> | Status: new
      Type: Bugs | Component: thread
 Milestone: To Be Determined | Severity: Problem
   Version: Boost 1.58.0 | Keywords: wait_for future
Resolution: | continuation
-------------------------------------+-------------------------------------

Comment (by Konrad Zemek <konrad.zemek@…>):

 I've just noticed - it's not {{{wait_for}}} that locks, it's the
 {{{far_future}}}'s destructor that locks here, which is consistent with
 the documentation:

> The returned futures behave as the ones returned from boost::async, the
 destructor of the future object returned from then will block.

 I will have to find a workaround, but it's not a bug.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11220#comment:1>
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:18 UTC