VirtualBox

Changeset 106976 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Nov 13, 2024 8:52:53 AM (5 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
165907
Message:

Added tracking for medium, machine, session, progress objects.

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

Legend:

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

    r106832 r106976  
    299299{
    300300    LogFlowThisFunc(("\n"));
     301    setTracked(0, 60);//infinite, 1 minute
    301302    return BaseFinalConstruct();
    302303}
  • trunk/src/VBox/Main/src-server/MediumImpl.cpp

    r106832 r106976  
    986986    AssertRCReturn(vrc, E_FAIL);
    987987
     988    setTracked(0, 60);//infinite, 1 minute
     989
    988990    return BaseFinalConstruct();
    989991}
     
    16821684        if (pMedium != this)
    16831685            pMedium->Release();
     1686
     1687        /*
     1688         * Special case. Invalidate the tracked object.
     1689         * Works ONLY in conjunction with setTracked() in init() or FinalConstruct()!
     1690         * The Medium object may stay in memory after the call uninit(). See i_close(), in instance.
     1691         * The object state is "Not ready" in this case. From user perspective the object doesn't exist anymore.
     1692         * In this case we still track the object but mark the object as "invalid".
     1693         */
     1694        invalidateTracked();
    16841695
    16851696        autoUninitSpan.setSucceeded();
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