Re: [Boost-bugs] [Boost C++ Libraries] #6787: boost::thread::sleep() hangs if system time is rolled back

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6787: boost::thread::sleep() hangs if system time is rolled back
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-09-25 10:13:13


#6787: boost::thread::sleep() hangs if system time is rolled back
-----------------------------------------------+----------------------
  Reporter: Artem Gayardo-Matrosov <boost@…> | Owner: viboes
      Type: Bugs | Status: assigned
 Milestone: Boost 1.60.0 | Component: thread
   Version: Boost 1.49.0 | Severity: Problem
Resolution: | Keywords:
-----------------------------------------------+----------------------

Comment (by ueli.marti@…):

 Tested this
 https://github.com/boostorg/thread/commit/8f5de1d7c34ff7248261874f273498a622bf76d4
 on ARM/Linux.
 Problem is still the same:
 boost::this_thread::sleep_for() hangs if system clock is rolled back,
 returns if clock rolled forward again.
 Now a question:
 Is it enough to #define BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC in
 my code or does it have to be defined when building boost ?
 In the latter case, where to put this #define ?

 Information:
 With boost 1.59.0 on i386/Ubuntu 12.04 the behavior of
 boost::this_thread::sleep_for()is correct, no impact when rolling back the
 system clock.
 The problem seems specific to ARM.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6787#comment:57>
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