Re: [Boost-bugs] [Boost C++ Libraries] #11818: future.then will be blocked if promise is set after the invocation of then

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11818: future.then will be blocked if promise is set after the invocation of then
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-11-24 17:44:51


#11818: future.then will be blocked if promise is set after the invocation of then
---------------------------------------------+----------------------
  Reporter: Xiaoshuang LU <luxiaoshuang@…> | Owner: viboes
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.59.0 | Severity: Problem
Resolution: | Keywords:
---------------------------------------------+----------------------

Comment (by viboes):

 I believe this is a bug.

 When you launch the continuation with deferred policy, the continuation
 shouldn't be executed until a call to result.get() is done.

 Actually the future.then(launch::deferred, f) do a call to future.wait()
 and so it blocks.

 I will try to fix it for the next release, but the release is upcoming :(

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11818#comment:3>
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:19 UTC