- Timestamp:
- Mar 21, 2010 11:03:46 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MediumImpl.cpp
r27392 r27564 1586 1586 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 1587 1587 1588 #if 1 /** @todo Temporarily hacked so that it won't trigger lock validator errors 1589 * and deadlock. */ 1590 /* VirtualBox::saveSettings() needs a write lock and we access mParent & children() */ 1591 AutoWriteLock alock(m->pVirtualBox COMMA_LOCKVAL_SRC_POS); 1592 AutoMultiWriteLock2 alockGrossHack(&m->pVirtualBox->getMediaTreeLockHandle(), this->lockHandle() COMMA_LOCKVAL_SRC_POS); 1593 #else 1588 1594 /* VirtualBox::saveSettings() needs a write lock */ 1589 1595 AutoMultiWriteLock2 alock(m->pVirtualBox, this COMMA_LOCKVAL_SRC_POS); 1596 #endif 1590 1597 1591 1598 switch (m->state) … … 1604 1611 } 1605 1612 1613 #if 0 /** @todo temporary hack above. */ 1606 1614 /* we access mParent & children() */ 1607 1615 AutoReadLock treeLock(m->pVirtualBox->getMediaTreeLockHandle() COMMA_LOCKVAL_SRC_POS); 1616 #endif 1608 1617 1609 1618 /* cannot change the type of a differencing hard disk */ … … 1643 1652 1644 1653 m->type = aType; 1654 1655 #if 1 /** @todo remove this gross hack! Just need to get this code working again. */ 1656 alockGrossHack.leave(); 1657 #endif 1645 1658 1646 1659 HRESULT rc = m->pVirtualBox->saveSettings();
Note:
See TracChangeset
for help on using the changeset viewer.