[Boost-bugs] [Boost C++ Libraries] #7755: Thread: deadlock with shared_mutex on Windows

Subject: [Boost-bugs] [Boost C++ Libraries] #7755: Thread: deadlock with shared_mutex on Windows
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-12-01 14:47:50


#7755: Thread: deadlock with shared_mutex on Windows
------------------------------------------+---------------------------------
 Reporter: Andrey <nikolay@…> | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.52.0 | Severity: Problem
 Keywords: |
------------------------------------------+---------------------------------
 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.

 P.S. I didn't try the same test using pthread, so it is a good idea to
 test (and fix if needed) pthread implementation as well.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7755>
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:11 UTC