Changeset 31070 in vbox for trunk/src/VBox/Main/SessionImpl.cpp
- Timestamp:
- Jul 23, 2010 4:00:09 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 64005
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/SessionImpl.cpp
r31019 r31070 64 64 LogFlowThisFunc(("\n")); 65 65 66 uninit( true /* aFinalRelease */);66 uninit(); 67 67 } 68 68 … … 109 109 * @note Locks this object for writing. 110 110 */ 111 void Session::uninit( bool aFinalRelease)111 void Session::uninit() 112 112 { 113 113 LogFlowThisFuncEnter(); 114 LogFlowThisFunc(("aFinalRelease=%d\n", aFinalRelease));115 114 116 115 /* Enclose the state transition Ready->InUninit->NotReady */ … … 131 130 mState == SessionState_Spawning); 132 131 133 HRESULT rc = close(aFinalRelease, false /* aFromServer */);132 HRESULT rc = unlockMachine(true /* aFinalRelease */, false /* aFromServer */); 134 133 AssertComRC(rc); 135 134 } … … 233 232 ///////////////////////////////////////////////////////////////////////////// 234 233 235 STDMETHODIMP Session:: Close()234 STDMETHODIMP Session::UnlockMachine() 236 235 { 237 236 LogFlowThisFunc(("mState=%d, mType=%d\n", mState, mType)); … … 245 244 CHECK_OPEN(); 246 245 247 return close(false /* aFinalRelease */, false /* aFromServer */);246 return unlockMachine(false /* aFinalRelease */, false /* aFromServer */); 248 247 } 249 248 … … 491 490 492 491 /* close ourselves */ 493 rc = close(false /* aFinalRelease */, true /* aFromServer */);492 rc = unlockMachine(false /* aFinalRelease */, true /* aFromServer */); 494 493 } 495 494 else if (autoCaller.state() == InUninit) … … 793 792 794 793 /** 795 * Closesthe current session.794 * Unlocks a machine associated with the current session. 796 795 * 797 796 * @param aFinalRelease called as a result of FinalRelease() 798 797 * @param aFromServer called as a result of Uninitialize() 799 798 * 800 * @note To be called only from #uninit(), # Close() or #Uninitialize().799 * @note To be called only from #uninit(), #UnlockMachine() or #Uninitialize(). 801 800 * @note Locks this object for writing. 802 801 */ 803 HRESULT Session:: close(bool aFinalRelease, bool aFromServer)802 HRESULT Session::unlockMachine(bool aFinalRelease, bool aFromServer) 804 803 { 805 804 LogFlowThisFuncEnter();
Note:
See TracChangeset
for help on using the changeset viewer.