[Boost-bugs] [Boost C++ Libraries] #4414: wait_for_all waits on futures on implicit specific order.

Subject: [Boost-bugs] [Boost C++ Libraries] #4414: wait_for_all waits on futures on implicit specific order.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-07-09 06:54:28


#4414: wait_for_all waits on futures on implicit specific order.
------------------------------+---------------------------------------------
 Reporter: ivg@… | Owner:
     Type: Feature Requests | Status: new
Milestone: Boost 1.44.0 | Component: None
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 Either, the order in which futures must happen must be specified
 explicitly in the documentation, or, may be, a wait_for_all can be
 implemented via wait_for_any. For example, a range based wait_for_all:
 {{{
     template <typename FutureIterator>
     void wait_for_all(FutureIterator first, FutureIterator last) {
         for (;first != last; ++first)
             std::iter_swap(first, boost::wait_for_any(first, last));
     }
 }}}

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