VirtualBox

Changeset 5777 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 16, 2007 5:18:13 PM (17 years ago)
Author:
vboxsync
Message:

Main: Fixed a dedalock (Machine::AttachHardDisk() calledl VirtualBox with locking which violated the lock order (parents->self->children) and caused a deadlock when VirtualBox tried to lock Machine in clientWatcherThread()).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MachineImpl.cpp

    r5755 r5777  
    16001600    CheckComRCReturnRC (autoCaller.rc());
    16011601
    1602     AutoLock alock (this);
     1602    /* VirtualBox::getHardDisk() need read lock */
     1603    AutoMultiLock <2> alock (mParent->rlock(), this->wlock());
    16031604
    16041605    HRESULT rc = checkStateDependency (MutableStateDep);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette