VirtualBox

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


Ignore:
Timestamp:
Jan 17, 2023 11:11:43 AM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
155238
Message:

Main/Machine: Assert that mData->mSession.mLockedMedia is locked before unlocking + modifying + relocking, as this seems to be an assumption in these three cases.

File:
1 edited

Legend:

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

    r96407 r98102  
    342342    HRESULT Unlock();
    343343
     344    /** Introspection. */
     345    bool IsLocked(void) const { return mIsLocked; }
     346
    344347private:
    345348    typedef std::map<ComObjPtr<MediumAttachment>, MediumLockList *> Base;
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