Re: [Boost-bugs] [Boost C++ Libraries] #12727: Using sleep_for with nanoseconds on a boost::thread does not always use the correct clock

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12727: Using sleep_for with nanoseconds on a boost::thread does not always use the correct clock
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-02-19 18:26:09


#12727: Using sleep_for with nanoseconds on a boost::thread does not always use the
correct clock
---------------------------+----------------------
  Reporter: rkaris@… | Owner: viboes
      Type: Bugs | Status: assigned
 Milestone: Boost 1.64.0 | Component: thread
   Version: Boost 1.63.0 | Severity: Problem
Resolution: | Keywords:
---------------------------+----------------------

Comment (by Roger Karis <rkaris@…>):

 My platform indeed defines CLOCK_MONOTONIC and adding the snippet solves
 the issue. I'm wondering though whether both sleep_for and sleep_until
 should always employ the monotonic clock, when available. It would seem
 logical at first glance, yet maybe there are use-cases where different
 clock behavior is desired?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12727#comment:6>
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-19 18:30:21 UTC