Re: [Boost-bugs] [Boost C++ Libraries] #13241: thread/pthread/timespec.hpp compilation failure on OSX El Capitan (1.65.1)

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #13241: thread/pthread/timespec.hpp compilation failure on OSX El Capitan (1.65.1)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-10-04 21:46:00


#13241: thread/pthread/timespec.hpp compilation failure on OSX El Capitan (1.65.1)
-------------------------------------------------+-------------------------
  Reporter: Kris Thielemans | Owner: viboes
  <kris.f.thielemans@…> |
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.65.0 | Severity: Showstopper
Resolution: | Keywords: osx
-------------------------------------------------+-------------------------
Changes (by viboes):

 * status: new => assigned
 * owner: Anthony Williams => viboes

Comment:

 It is weird. I develop Boost.Thread using OSX El Capitan 10.11.4 and I
 never had any similar issue.

 Thanks for the information about when this was working and when not.

 Oh, I see it now

 the code is

 {{{
 #if defined BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC

     inline timespec timespec_now_monotonic()
     {
       timespec ts;

       if ( ::clock_gettime( CLOCK_MONOTONIC, &ts ) )
       {
         ts.tv_sec = 0;
         ts.tv_nsec = 0;
         BOOST_ASSERT(0 && "Boost::Thread - Internal Error");
       }
       return ts;
     }
 #endif
 }}}

 This was a failed trial to use condition variables with monotonic clocks.
 BTW, Mac Os doesn't provide condition variables with monotonic clocks

 Are you defining BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC?
 If yes, please don't do it :)

 The code should work as before introducing this regression.

 We are working on this, see https://github.com/boostorg/thread/pull/142.
 Hopping we will have this ready for boost-1.66.

-- 
Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13241#comment:1>
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-10-04 21:53:07 UTC