explicit upgrade_to_unique_lock(LockType& other) { lockable_ = other.release(); if (lockable_) lockable_->unlock_upgrade_and_lock(); }
upgrade_to_unique_lock(LockType& other) { m_lockable = other.release(); if (m_lockable) m_lockable->lock_upgrade(); }