Re: [Boost-bugs] [Boost C++ Libraries] #5502: race condition between shared_mutex timed_lock and lock_shared

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5502: race condition between shared_mutex timed_lock and lock_shared
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-20 21:31:29


#5502: race condition between shared_mutex timed_lock and lock_shared
--------------------------------------+-------------------------------------
  Reporter: eliothorowitz@… | Owner: viboes
      Type: Patches | Status: assigned
 Milestone: Boost 1.49.0 | Component: thread
   Version: Boost Release Branch | Severity: Showstopper
Resolution: | Keywords:
--------------------------------------+-------------------------------------
Changes (by viboes):

 * cc: viboes (added)
  * owner: anthonyw => viboes
  * type: Bugs => Patches
  * status: new => assigned
  * milestone: To Be Determined => Boost 1.49.0

Comment:

 I have tested your patch and it works. Yes the issue is that when


 {{{
     state.exclusive_waiting_blocked=false;
 }}}


 the shared_cond variable must be notified also.

 I have committed this at #76084.
 To be closed when merged to release.

 Thanks for catching this and, of course, for the solution.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5502#comment:2>
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:08 UTC