Commit 8b28990a authored by Dominik Charousset's avatar Dominik Charousset

Merge pull request #185 from nq-ebaratte/fix_locks

fixed 'deadlock' for shared spinlocks
parents a7697b08 7645590a
...@@ -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