- Timestamp:
- Jun 16, 2015 1:21:07 PM (10 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/SessionImpl.h
r56448 r56450 141 141 142 142 143 HRESULT i_unlockMachine(bool aFinalRelease, bool aFromServer, AutoWriteLock *pLockW);143 HRESULT i_unlockMachine(bool aFinalRelease, bool aFromServer, AutoWriteLock &aLockW); 144 144 145 145 SessionState_T mState; -
trunk/src/VBox/Main/src-client/SessionImpl.cpp
r56449 r56450 123 123 mState == SessionState_Spawning); 124 124 125 HRESULT rc = i_unlockMachine(true /* aFinalRelease */, false /* aFromServer */, &alock);125 HRESULT rc = i_unlockMachine(true /* aFinalRelease */, false /* aFromServer */, alock); 126 126 AssertComRC(rc); 127 127 } … … 240 240 241 241 CHECK_OPEN(); 242 return i_unlockMachine(false /* aFinalRelease */, false /* aFromServer */, &alock);242 return i_unlockMachine(false /* aFinalRelease */, false /* aFromServer */, alock); 243 243 } 244 244 … … 534 534 535 535 /* close ourselves */ 536 rc = i_unlockMachine(false /* aFinalRelease */, true /* aFromServer */, &alock);536 rc = i_unlockMachine(false /* aFinalRelease */, true /* aFromServer */, alock); 537 537 } 538 538 else if (getObjectState().getState() == ObjectState::InUninit) … … 1063 1063 * @note To be called only from #uninit(), #UnlockMachine() or #Uninitialize(). 1064 1064 */ 1065 HRESULT Session::i_unlockMachine(bool aFinalRelease, bool aFromServer, AutoWriteLock *pLockW)1065 HRESULT Session::i_unlockMachine(bool aFinalRelease, bool aFromServer, AutoWriteLock &aLockW) 1066 1066 { 1067 1067 LogFlowThisFuncEnter(); … … 1071 1071 LogFlowThisFunc(("mState=%s, mType=%d\n", Global::stringifySessionState(mState), mType)); 1072 1072 1073 Assert( pLockW->isWriteLockOnCurrentThread());1073 Assert(aLockW.isWriteLockOnCurrentThread()); 1074 1074 1075 1075 if (mState != SessionState_Locked) … … 1138 1138 * SessionState_Closing here, so it's safe. 1139 1139 */ 1140 pLockW->release();1141 1142 Assert(! pLockW->isWriteLockOnCurrentThread());1140 aLockW.release(); 1141 1142 Assert(!aLockW.isWriteLockOnCurrentThread()); 1143 1143 1144 1144 LogFlowThisFunc(("Calling mControl->OnSessionEnd()...\n")); … … 1146 1146 LogFlowThisFunc(("mControl->OnSessionEnd()=%08X\n", rc)); 1147 1147 1148 pLockW->acquire();1148 aLockW.acquire(); 1149 1149 1150 1150 /*
Note:
See TracChangeset
for help on using the changeset viewer.