Re: [Boost-bugs] [Boost C++ Libraries] #12949: using sleep_for in a thread context without including boost/thread/thread.hpp yields incorrect behaviour when BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC is defined

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12949: using sleep_for in a thread context without including boost/thread/thread.hpp yields incorrect behaviour when BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC is defined
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-05-01 10:29:10


#12949: using sleep_for in a thread context without including
boost/thread/thread.hpp yields incorrect behaviour when
BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC is defined
-------------------------------+----------------------
  Reporter: rkaris@… | Owner: viboes
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.63.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+----------------------

Comment (by rkaris@…):

 I'm testing on linux in this case. It seems the sleep_for() in the example
 selects the sleep_for() nanoseconds overload found in
 boost/thread/pthread/thread_data.hpp instead of the
 boost/thread/v2/thread.hpp one. With the monotonic clock defined, this
 seems to lead to a very long sleeping period.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12949#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-05-01 10:33:13 UTC