VirtualBox

Changeset 56450 in vbox for trunk/src


Ignore:
Timestamp:
Jun 16, 2015 1:21:07 PM (10 years ago)
Author:
vboxsync
Message:

Main: Style

Location:
trunk/src/VBox/Main
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/SessionImpl.h

    r56448 r56450  
    141141
    142142
    143     HRESULT i_unlockMachine(bool aFinalRelease, bool aFromServer, AutoWriteLock *pLockW);
     143    HRESULT i_unlockMachine(bool aFinalRelease, bool aFromServer, AutoWriteLock &aLockW);
    144144
    145145    SessionState_T mState;
  • trunk/src/VBox/Main/src-client/SessionImpl.cpp

    r56449 r56450  
    123123               mState == SessionState_Spawning);
    124124
    125         HRESULT rc = i_unlockMachine(true /* aFinalRelease */, false /* aFromServer */, &alock);
     125        HRESULT rc = i_unlockMachine(true /* aFinalRelease */, false /* aFromServer */, alock);
    126126        AssertComRC(rc);
    127127    }
     
    240240
    241241    CHECK_OPEN();
    242     return i_unlockMachine(false /* aFinalRelease */, false /* aFromServer */, &alock);
     242    return i_unlockMachine(false /* aFinalRelease */, false /* aFromServer */, alock);
    243243}
    244244
     
    534534
    535535        /* close ourselves */
    536         rc = i_unlockMachine(false /* aFinalRelease */, true /* aFromServer */, &alock);
     536        rc = i_unlockMachine(false /* aFinalRelease */, true /* aFromServer */, alock);
    537537    }
    538538    else if (getObjectState().getState() == ObjectState::InUninit)
     
    10631063 *  @note To be called only from #uninit(), #UnlockMachine() or #Uninitialize().
    10641064 */
    1065 HRESULT Session::i_unlockMachine(bool aFinalRelease, bool aFromServer, AutoWriteLock *pLockW)
     1065HRESULT Session::i_unlockMachine(bool aFinalRelease, bool aFromServer, AutoWriteLock &aLockW)
    10661066{
    10671067    LogFlowThisFuncEnter();
     
    10711071    LogFlowThisFunc(("mState=%s, mType=%d\n", Global::stringifySessionState(mState), mType));
    10721072
    1073     Assert(pLockW->isWriteLockOnCurrentThread());
     1073    Assert(aLockW.isWriteLockOnCurrentThread());
    10741074
    10751075    if (mState != SessionState_Locked)
     
    11381138         *  SessionState_Closing here, so it's safe.
    11391139         */
    1140         pLockW->release();
    1141 
    1142         Assert(!pLockW->isWriteLockOnCurrentThread());
     1140        aLockW.release();
     1141
     1142        Assert(!aLockW.isWriteLockOnCurrentThread());
    11431143
    11441144        LogFlowThisFunc(("Calling mControl->OnSessionEnd()...\n"));
     
    11461146        LogFlowThisFunc(("mControl->OnSessionEnd()=%08X\n", rc));
    11471147
    1148         pLockW->acquire();
     1148        aLockW.acquire();
    11491149
    11501150        /*
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette