Boost C++ Libraries: Ticket #7575: c++11 compliance: A future created by async should "join" in the destructor https://svn.boost.org/trac10/ticket/7575 <p> The C++ Standard requires (Section 3.6.8, Paragraph 5) in cases where std::async() creates a future and no explicit waiting function is called for the future, that "the associated thread completion synchronizes with [...] with the return from the last function that releases the shared state [...]". </p> <p> This effectively means that destructor of such future must wait until the associated thread finishes. This requirement makes std::async() a tool that behaves like RAII classes: it binds the resource (the associated thread) with the life-time of the future object. </p> <p> Boost.Thread should follow the same behavior for futures created with async (when called with parameter launch::async). </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7575 Trac 1.4.3 viboes Sun, 28 Oct 2012 14:17:59 GMT owner, status changed https://svn.boost.org/trac10/ticket/7575#comment:1 https://svn.boost.org/trac10/ticket/7575#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket viboes Mon, 05 Nov 2012 01:24:23 GMT cc set; milestone deleted https://svn.boost.org/trac10/ticket/7575#comment:2 https://svn.boost.org/trac10/ticket/7575#comment:2 <ul> <li><strong>cc</strong> <span class="trac-author">viboes</span> added </li> <li><strong>milestone</strong> <span class="trac-field-deleted">To Be Determined</span> </li> </ul> Ticket viboes Mon, 05 Nov 2012 21:37:08 GMT summary changed; milestone set https://svn.boost.org/trac10/ticket/7575#comment:3 https://svn.boost.org/trac10/ticket/7575#comment:3 <ul> <li><strong>summary</strong> <span class="trac-field-old">A future created by async should "join" in the destructor</span> → <span class="trac-field-new">c++11 compliance: A future created by async should "join" in the destructor</span> </li> <li><strong>milestone</strong> → <span class="trac-field-new">Boost 1.53.0</span> </li> </ul> Ticket viboes Sun, 18 Nov 2012 17:52:10 GMT <link>https://svn.boost.org/trac10/ticket/7575#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7575#comment:4</guid> <description> <p> Committed in trunk revision <a class="changeset" href="https://svn.boost.org/trac10/changeset/81410" title="Thread: manage with #7575 for c++11 compliant compilers + try to fix ...">[81410]</a>. (c++11 version) </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sun, 02 Dec 2012 10:40:12 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7575#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7575#comment:5</guid> <description> <p> Committed revision <a class="changeset" href="https://svn.boost.org/trac10/changeset/81667" title="Thread: merge from trunk 1.53">[81667]</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 08 Dec 2012 16:00:42 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7575#comment:6 https://svn.boost.org/trac10/ticket/7575#comment:6 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket