VirtualBox

Changeset 24342 in vbox


Ignore:
Timestamp:
Nov 4, 2009 3:42:41 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
54361
Message:

Main/Machine: fix deadlock caused by lock order violation in SessionMachine::OnSessionEnd

File:
1 edited

Legend:

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

    r24323 r24342  
    86058605    ComAssertRet (!control.isNull(), E_INVALIDARG);
    86068606
    8607     AutoWriteLock alock(this);
     8607    /* Creating a Progress object requires the VirtualBox children lock, and
     8608     * thus locking it here is required by the lock order rules. */
     8609    AutoMultiWriteLock2 alock(mParent->childrenLock(), this->lockHandle());
    86088610
    86098611    if (control.equalsTo (mData->mSession.mDirectControl))
Note: See TracChangeset for help on using the changeset viewer.

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