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