[Boost-bugs] [Boost C++ Libraries] #4413: wait_for_any hangs up on empty intervals.

Subject: [Boost-bugs] [Boost C++ Libraries] #4413: wait_for_any hangs up on empty intervals.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-07-09 06:26:45


#4413: wait_for_any hangs up on empty intervals.
--------------------------+-------------------------------------------------
 Reporter: ivg@… | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: Boost 1.44.0 | Component: thread
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: |
--------------------------+-------------------------------------------------
 If range based boost::wait_for_any function is called with an empty
 interval (first == last) then it will hang up forever.

 The fix is trivial:
 if (first == last)
    return last;

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