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-02-04 17:48:33


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

Comment (by Matulis):

 So I added in the requested code, it seems like there was no error on
 BOOST_THREAD_SLEEP_FOR_IS_STEADY

 And the execution worked correctly, with the nanosleep.

 However when I recompile my boost libraries with:

 ./b2 toolset=gcc-4.8.2 cxxflags="-std=c++11 -std=c++0x -v"
 define="_GLIBCXX_USE_NANOSLEEP" -a

 I still get the same issue when using:

 boost::this_thread::no_interruption_point::sleep_for(
 boost::chrono::milliseconds(800));

 or

 boost::this_thread::sleep_for( boost::chrono::milliseconds(800));


 Any ideas? So you are not seeing this issue when running the program as
 sudo? Since the system time will not change if you don't have elevated
 permissions.

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