[Boost-bugs] [Boost C++ Libraries] #11688: thread::try_join_until: Avoid busy wait if system clock changes

Subject: [Boost-bugs] [Boost C++ Libraries] #11688: thread::try_join_until: Avoid busy wait if system clock changes
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-09-28 09:09:54


#11688: thread::try_join_until: Avoid busy wait if system clock changes
--------------------------------+----------------------
 Reporter: Mike Crowe <mac@…> | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.58.0 | Severity: Problem
 Keywords: |
--------------------------------+----------------------
 If system clock changes by an amount larger than the outstanding duration
 according to the supplied clock then the code loops around again but
 continues to pass a time point based on the original value of the system
 clock to the system_clock variant of try_join.

 If we're going to recalculate the outstanding duration in the loop then it
 is necessary to get the current time according to the system clock to use
 with this duration.

 (Originally raised as https://github.com/boostorg/thread/pull/58 )

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