[Boost-bugs] [Boost C++ Libraries] #7665: this_thread::sleep_for no longer uses steady_clock in thread

Subject: [Boost-bugs] [Boost C++ Libraries] #7665: this_thread::sleep_for no longer uses steady_clock in thread
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-11-08 14:37:43


#7665: this_thread::sleep_for no longer uses steady_clock in thread
-------------------------------+--------------------------------------------
 Reporter: ewdevel@… | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.52.0 | Severity: Regression
 Keywords: |
-------------------------------+--------------------------------------------
 In 1.51 sleep_for slept for set time no matter what [unless it received
 interrupt].
 In 1.52 sleep_for behaves like normal sleep [system_clock, which
 introduces problems witch changing time while sleeping] if in new thread.

 How to reproduce:
 Compile and run the test.
 Change time [date -s 10:00:00].

 Main thread will exit sleep_for after 10 seconds.
 Boost::thread will end after some other time.


 In correct situation [ex. boost 1.51] they should end simultaneously.


 I think it's introduced in revision 80450.

 Example program demonstrating this behavior is attached.

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