Opened 9 years ago
Closed 8 years ago
#9569 closed Bugs (fixed)
[windows] Upgrade lock is not acquired when previous upgrade lock releases if another read lock is present
Reported by: | Owned by: | viboes | |
---|---|---|---|
Milestone: | Boost 1.57.0 | Component: | thread |
Version: | Boost 1.55.0 | Severity: | Problem |
Keywords: | shared_mutex windows | Cc: |
Description
The problem is described here https://svn.boost.org/trac/boost/ticket/5516. Example and result are the same. The only difference is that I use <boost/thread/win32/shared_mutex.hpp> instead of <boost/thread/pthread/shared_mutex.hpp>.
I tried to compile with BOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN flag and everything goes right. So the problem is in function unlock_upgrade() in <boost/thread/win32/shared_mutex.hpp>.
My platform: Windows 7 x64, MS VS 2012.
Change History (7)
comment:1 by , 9 years ago
Component: | None → thread |
---|---|
Owner: | set to |
Status: | new → assigned |
comment:2 by , 9 years ago
comment:3 by , 9 years ago
Milestone: | To Be Determined → Boost 1.57.0 |
---|
comment:4 by , 8 years ago
Summary: | Upgrade lock is not acquired when previous upgrade lock releases if another read lock is present → [windows] Upgrade lock is not acquired when previous upgrade lock releases if another read lock is present |
---|
comment:6 by , 8 years ago
comment:7 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
Hi,
Please could you try adding
and changing the implementation to
Please could you also try the test in #7720?