VirtualBox

Changeset 106976 in vbox for trunk


Ignore:
Timestamp:
Nov 13, 2024 8:52:53 AM (2 weeks ago)
Author:
vboxsync
Message:

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

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/ProgressImpl.cpp

    r106061 r106976  
    8989    mCompletedSem = NIL_RTSEMEVENTMULTI;
    9090    mWaitersCount = 0;
     91
     92    setTracked(18000, 7200);//5 hour, 2 hours
    9193
    9294    return Progress::BaseFinalConstruct();
  • trunk/src/VBox/Main/src-client/SessionImpl.cpp

    r106061 r106976  
    103103    mClientTokenHolder = NULL;
    104104
     105    setTracked(18000, 60);//5 hours, 1 hour
     106
    105107    /* Confirm a successful initialization when it's the case */
    106108    autoInitSpan.setSucceeded();
  • 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.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette