Re: [Boost-bugs] [Boost C++ Libraries] #7720: exception lock_error while intensive locking/unlocking of mutex

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7720: exception lock_error while intensive locking/unlocking of mutex
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-09-21 08:57:29


#7720: exception lock_error while intensive locking/unlocking of mutex
--------------------------------+------------------------
  Reporter: sergey.stepanov@… | Owner: viboes
      Type: Bugs | Status: reopened
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.59.0 | Severity: Regression
Resolution: | Keywords: lock_error
--------------------------------+------------------------

Comment (by Hung Mai <duchungjava@…>):

 Hi Viboes,

 Since I don't know how to provide the patch in the desired format, I've
 attached the file with the changes I made based on Boost-1.59

 Basically, there is just one small change in the unlock_upgrade function
 as following:

 {{{#!C++
 void unlock_upgrade()
 {
   // ...

   new_state.shared_waiting=0; // adds this line

   if(last_reader)
   {
     if(new_state.exclusive_waiting)
     {
       --new_state.exclusive_waiting;
       new_state.exclusive_waiting_blocked=false;
     }
     // new_state.shared_waiting=0; // comment out this line
   }

   // ...
 }
 }}}

 Thank you,

 Hung Mai

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7720#comment:32>
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:19 UTC