VirtualBox

Ignore:
Timestamp:
Sep 11, 2013 2:08:36 PM (11 years ago)
Author:
vboxsync
Message:

Main/Machine+Session: New generic client session watcher implementation based on token objects, works on all platforms and is used for now on XPCOM. Additionally a better error message when several API clients are racing for a lock, previously it could be quite confusing.

File:
1 edited

Legend:

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

    r48305 r48431  
    3535void MachineToken::FinalRelease()
    3636{
    37     uninit();
     37    uninit(false);
    3838
    3939    BaseFinalRelease();
     
    7070 * Called either from FinalRelease() or by the parent when it gets destroyed.
    7171 */
    72 void MachineToken::uninit()
     72void MachineToken::uninit(bool fAbandon)
    7373{
    7474    LogFlowThisFunc(("\n"));
     
    8282    if (!m.pSessionMachine.isNull())
    8383    {
    84         m.pSessionMachine->uninit();
     84        m.pSessionMachine->uninit(fAbandon ? SessionMachine::Uninit::Normal : SessionMachine::Uninit::Abnormal);
    8585        m.pSessionMachine.setNull();
    8686    }
     
    9696
    9797    /* uninit does everything we need */
    98     uninit();
     98    uninit(true);
    9999    return S_OK;
    100100}
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