Commit 7645590a authored by Etienne Baratte's avatar Etienne Baratte

fixed 'deadlock' for shared spinlocks

parent c0e9f4fd
...@@ -71,7 +71,7 @@ class upgrade_to_unique_lock { ...@@ -71,7 +71,7 @@ class upgrade_to_unique_lock {
template <class LockType> template <class LockType>
upgrade_to_unique_lock(LockType& other) { upgrade_to_unique_lock(LockType& other) {
m_lockable = other.release(); m_lockable = other.release();
if (m_lockable) m_lockable->lock_upgrade(); if (m_lockable) m_lockable->unlock_upgrade_and_lock();
} }
~upgrade_to_unique_lock() { ~upgrade_to_unique_lock() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment