Re: [Boost-bugs] [Boost C++ Libraries] #11499: exception lock_error while intensive locking/unlocking of shared_mutex on many threads

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11499: exception lock_error while intensive locking/unlocking of shared_mutex on many threads
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-09-03 07:06:43


#11499: exception lock_error while intensive locking/unlocking of shared_mutex on
many threads
-------------------------------------+----------------------
  Reporter: andrew maclean <agm@…> | Owner: viboes
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.59.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------------+----------------------

Comment (by viboes):

 Please, could you try using a version >= 0


 {{{
 #define BOOST_THREAD_VERSION 4
 }}}


 If you can not, could you try replacing


 {{{
  #if defined BOOST_THREAD_USES_DATETIME

     BOOST_VERIFY(timed_lock(::boost::detail::get_system_time_sentinel()));

 #else

     BOOST_VERIFY(try_lock_until(chrono::steady_clock::now()));

 #endif
 }}}

 by


 {{{
     BOOST_VERIFY(try_lock_until(chrono::steady_clock::now()));
 }}}

 The same for lock_shared.

 Thanks for your help,
 Vicente

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11499#comment:9>
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:18 UTC