VirtualBox

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


Ignore:
Timestamp:
Dec 9, 2024 1:09:34 PM (6 weeks ago)
Author:
vboxsync
Message:

bugref:10806. Added member TrackedObjectData:m_fLifeTimeExpired, the getters isIdleTimeStarted() and isLifeTimeExpired(), function TrackedObjectsCollector::updateObj(). jiraref:VBP-1459.

File:
1 edited

Legend:

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

    r107240 r107254  
    145145    }
    146146
     147    inline bool isIdleTimeStarted() const
     148    {
     149        return m_fIdleTimeStart;
     150    }
     151
     152    inline bool isLifeTimeExpired() const
     153    {
     154        return m_fLifeTimeExpired;
     155    }
     156
    147157    com::Utf8Str updateLastAccessTime();
    148158    com::Utf8Str initIdleTime();
     
    156166    com::Utf8Str m_componentName;
    157167    RTTIMESPEC m_creationTime;//creation time
     168    RTTIMESPEC m_deletionTime;//deletion time (m_creationTime + m_lifeTime + m_idleTime)
    158169    RTTIMESPEC m_idleTimeStart;//idle time beginning (ref counter is 1)
    159     RTTIMESPEC m_deletionTime;//deletion time (m_creationTime + m_lifeTime + m_idleTime)
    160170    RTTIMESPEC m_lastAccessTime;//last access time
    161171    uint64_t m_lifeTime;//lifetime after creation in seconds, 0 - live till the VBoxSVC lives
    162172    uint64_t m_idleTime;//lifetime after out of usage in seconds, 0 - keep forever
    163173    bool m_fIdleTimeStart;//when ref counter of m_pIface is 1 or m_lifeTime exceeded
     174    bool m_fLifeTimeExpired;//set to True only one time during the whole object life
    164175    TrackedObjectState_T m_state;
    165176    ComPtr<IUnknown> m_pIface;//keeps a reference to a tracked object
     
    200211                    uint64_t afterLifeTime,
    201212                    IUnknown* ptrIface);
     213
     214    HRESULT updateObj (const TrackedObjectData& aObjData);
    202215
    203216    HRESULT getObj (const com::Utf8Str &aObjId,
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