VirtualBox

Changeset 81394 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Oct 21, 2019 9:16:17 AM (5 years ago)
Author:
vboxsync
Message:

Main/MachineImplMoveVM: Putting all Machine object references in a global variable is impossible, since multiple VM move operations can operate concurrently.

File:
1 edited

Legend:

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

    r81393 r81394  
    6666class MachineMoveVM : public ThreadTask
    6767{
     68    std::vector<ComObjPtr<Machine> >        machineList;
    6869    RTCList<MEDIUMTASKCHAINMOVE>            m_llMedias;
    6970    RTCList<SAVESTATETASKMOVE>              m_llSaveStateFiles;
     
    110111
    111112private:
    112     HRESULT createMachineList(const ComPtr<ISnapshot> &pSnapshot, std::vector<ComObjPtr<Machine> > &aMachineList) const;
     113    HRESULT createMachineList(const ComPtr<ISnapshot> &pSnapshot);
    113114    inline HRESULT queryBaseName(const ComPtr<IMedium> &pMedium, Utf8Str &strBaseName) const;
    114     HRESULT queryMediasForAllStates(const std::vector<ComObjPtr<Machine> > &aMachineList);
     115    HRESULT queryMediasForAllStates();
    115116    void updateProgressStats(MEDIUMTASKCHAINMOVE &mtc, ULONG &uCount, ULONG &uTotalWeight) const;
    116117    HRESULT addSaveState(const ComObjPtr<Machine> &machine);
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