VirtualBox

Changeset 18520 in vbox for trunk/src


Ignore:
Timestamp:
Mar 30, 2009 8:45:50 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
45374
Message:

Main: #3548 VBoxSVC holds vm xml definition file open after VM is unregistered
Make Machine::unlockConfig public and call it from VirtualBox::UnregisterMachine.

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

Legend:

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

    r18518 r18520  
    10931093    /* save the global registry */
    10941094    rc = saveSettings();
     1095    CheckComRCReturnRC (rc);
     1096
     1097    /* Close settings file for this machine. */
     1098    rc = machine->unlockConfig();
    10951099
    10961100    /* return the unregistered machine to the caller */
  • trunk/src/VBox/Main/include/MachineImpl.h

    r18214 r18520  
    799799
    800800    HRESULT lockConfig();
     801public: /* To have it available in VirtualBox::UnregisterMachine. */
    801802    HRESULT unlockConfig();
    802803
     804protected:
    803805    /** @note This method is not thread safe */
    804806    BOOL isConfigLocked()
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