Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7755: Thread: deadlock with shared_mutex on Windows
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-03-03 21:30:32
#7755: Thread: deadlock with shared_mutex on Windows
-------------------------------------------+--------------------------------
Reporter: Andrey <nikolay@â¦> | Owner: viboes
Type: Bugs | Status: reopened
Milestone: To Be Determined | Component: thread
Version: Boost 1.52.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------------------+--------------------------------
Comment (by anonymous):
Replying to [ticket:7755 Andrey <nikolay@â¦>]:
> Please see attached test. Code is very simple. It works when thread3
uses thread3_func_workaround function and test is deadlocked when thread3
uses thread3_func function. From the first view, it seems the problem in
the shared_mutex::timed_lock function. Possible it have to signal
"semaphores[unlock_sem]" semaphore when state.exclusive_waiting_blocked is
changed from true to false. This action will wake up threads which are
waiting for shared access.
It seems your analysis were right. Please could you try the attached
patch?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7755#comment:5> 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:12 UTC