VirtualBox

Changeset 40302 in vbox


Ignore:
Timestamp:
Feb 29, 2012 6:30:21 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76550
Message:

Main/Console: fix deadlock in DVD change, many more such fixes to come

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r40282 r40302  
    47144714/**
    47154715 * Called by IInternalSessionControl::OnMediumChange().
    4716  *
    4717  * @note Locks this object for writing.
    47184716 */
    47194717HRESULT Console::onMediumChange(IMediumAttachment *aMediumAttachment, BOOL aForce)
     
    47234721    AutoCaller autoCaller(this);
    47244722    AssertComRCReturnRC(autoCaller.rc());
    4725 
    4726     AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    47274723
    47284724    HRESULT rc = S_OK;
     
    47384734    /* notify console callbacks on success */
    47394735    if (SUCCEEDED(rc))
    4740     {
    4741         alock.release(); /** @todo 101% safe? */
    47424736        fireMediumChangedEvent(mEventSource, aMediumAttachment);
    4743     }
    47444737
    47454738    LogFlowThisFunc(("Leaving rc=%#x\n", rc));
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