[Boost-bugs] [Boost C++ Libraries] #9711: future continuation called twice

Subject: [Boost-bugs] [Boost C++ Libraries] #9711: future continuation called twice
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-02-25 12:51:15


#9711: future continuation called twice
------------------------------+----------------------
 Reporter: anonymous | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: threads
  Version: Boost 1.55.0 | Severity: Problem
 Keywords: futures |
------------------------------+----------------------
 I know it is still experimental, but I found a trivial bug in
 future::then().

 If used with the deferred launch policy the continuation is called twice:

 The first time it is called in promise::set_XXX() or future::then() as it
 should be, but it is called again in the get() method of the future
 returned by the then() method.

 You can reproduce the problem by running the attached code.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9711>
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:15 UTC