Re: [Boost-bugs] [Boost C++ Libraries] #12519: boost::thread::try_join_for does not return after timeout

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12519: boost::thread::try_join_for does not return after timeout
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-06-06 05:59:58


#12519: boost::thread::try_join_for does not return after timeout
---------------------------+----------------------
  Reporter: mweb@… | Owner: viboes
      Type: Patches | Status: assigned
 Milestone: Boost 1.64.0 | Component: thread
   Version: Boost 1.61.0 | Severity: Problem
Resolution: | Keywords:
---------------------------+----------------------

Comment (by lumosimann@…):

 Yes, the problem is still around, because the patch has not been applied
 correctly. Your commits are unrelated to this.

 The patch I submitted in post #comment:9 still works for me. You have
 applied this patch, but as I have already mentioned in comment
 #comment:16, you applied the patch at the wrong place. I have provided
 another patch in that comment which works at least for me.

 I would recommend to
 1. Fix what I posted in comment #16
 2. Remove `BOOST_THREAD_USEFIXES_TIMESPEC` and make it default
 3. Rename `my_clock_t` into something more descriptive and move into
 `detail` namespace
 4. Test whether and how this fix is also needed for windows (this I really
 don't know)

 As I mentionned in #comment:9, there are also unittests in the github-gist
 given in that comment (I would post it again, but the bug tracking system
 does not allow me to post that link to github).

 When you run those tests, you will see that
 `BOOST_THREAD_USEFIXES_TIMESPEC` +
 `BOOST_THREAD_CONDATTR_SET_CLOCK_MONOTONIC` currently results in a
 segfault, and all other combinations result in at least one error.

 The fix in comment #comment:16 plus defining
 `BOOST_THREAD_USEFIXES_TIMESPEC` resolves all unittests with and without
 `BOOST_THREAD_HAS_CONDATTR_SET_CLOCK_MONOTONIC` set accordingly.

 Doing this would solve both issues #12519 and #6787. Therefore I would
 strongly vote to integrate this into the upcoming boost version.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12519#comment:21>
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-06-06 06:03:08 UTC