VirtualBox

Changeset 45239 in vbox for trunk/src


Ignore:
Timestamp:
Mar 28, 2013 4:11:56 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
84617
Message:

Main/Medium: Remove leftover calls to UnlockWrite in ResetHandler causing hangs during startup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/MediumImpl.cpp

    r44433 r45239  
    30913091            pProgress.queryInterfaceTo(aProgress);
    30923092    }
    3093     else
    3094     {
    3095         /* Note: on success, the task will unlock this */
    3096         {
    3097             AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    3098             HRESULT rc2 = UnlockWrite(NULL);
    3099             AssertComRC(rc2);
    3100         }
    3101         if (pTask != NULL)
    3102             delete pTask;
    3103     }
     3093    else if (pTask != NULL)
     3094        delete pTask;
    31043095
    31053096    LogFlowThisFunc(("LEAVE, rc=%Rhrc\n", rc));
     
    78677858    m->variant = variant;
    78687859
    7869     if (task.isAsync())
    7870     {
    7871         /* unlock ourselves when done */
    7872         HRESULT rc2 = UnlockWrite(NULL);
    7873         AssertComRC(rc2);
    7874     }
    7875 
    7876     /* Note that in sync mode, it's the caller's responsibility to
    7877      * unlock the medium. */
     7860    /* Everything is explicitly unlocked when the task exits,
     7861     * as the task destruction also destroys the media chain. */
    78787862
    78797863    return 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