VirtualBox

Ignore:
Timestamp:
Jul 23, 2010 4:00:09 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64005
Message:

Main: rename ISession::close() to ISession::unlockMachine(); API documentation

File:
1 edited

Legend:

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

    r31019 r31070  
    6464    LogFlowThisFunc(("\n"));
    6565
    66     uninit(true /* aFinalRelease */);
     66    uninit();
    6767}
    6868
     
    109109 *  @note Locks this object for writing.
    110110 */
    111 void Session::uninit(bool aFinalRelease)
     111void Session::uninit()
    112112{
    113113    LogFlowThisFuncEnter();
    114     LogFlowThisFunc(("aFinalRelease=%d\n", aFinalRelease));
    115114
    116115    /* Enclose the state transition Ready->InUninit->NotReady */
     
    131130               mState == SessionState_Spawning);
    132131
    133         HRESULT rc = close(aFinalRelease, false /* aFromServer */);
     132        HRESULT rc = unlockMachine(true /* aFinalRelease */, false /* aFromServer */);
    134133        AssertComRC(rc);
    135134    }
     
    233232/////////////////////////////////////////////////////////////////////////////
    234233
    235 STDMETHODIMP Session::Close()
     234STDMETHODIMP Session::UnlockMachine()
    236235{
    237236    LogFlowThisFunc(("mState=%d, mType=%d\n", mState, mType));
     
    245244    CHECK_OPEN();
    246245
    247     return close(false /* aFinalRelease */, false /* aFromServer */);
     246    return unlockMachine(false /* aFinalRelease */, false /* aFromServer */);
    248247}
    249248
     
    491490
    492491        /* close ourselves */
    493         rc = close(false /* aFinalRelease */, true /* aFromServer */);
     492        rc = unlockMachine(false /* aFinalRelease */, true /* aFromServer */);
    494493    }
    495494    else if (autoCaller.state() == InUninit)
     
    793792
    794793/**
    795  *  Closes the current session.
     794 *  Unlocks a machine associated with the current session.
    796795 *
    797796 *  @param aFinalRelease    called as a result of FinalRelease()
    798797 *  @param aFromServer      called as a result of Uninitialize()
    799798 *
    800  *  @note To be called only from #uninit(), #Close() or #Uninitialize().
     799 *  @note To be called only from #uninit(), #UnlockMachine() or #Uninitialize().
    801800 *  @note Locks this object for writing.
    802801 */
    803 HRESULT Session::close(bool aFinalRelease, bool aFromServer)
     802HRESULT Session::unlockMachine(bool aFinalRelease, bool aFromServer)
    804803{
    805804    LogFlowThisFuncEnter();
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