Changeset 106878 in vbox for trunk/src/VBox/Main/src-all
- Timestamp:
- Nov 8, 2024 8:24:40 AM (6 months ago)
- svn:sync-xref-src-repo-rev:
- 165799
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-all/VirtualBoxBase.cpp
r106077 r106878 30 30 #include <iprt/asm.h> 31 31 #include <iprt/cpp/exception.h> 32 #include <iprt/cpp/utils.h> 32 33 33 34 #include <typeinfo> … … 47 48 #include "Global.h" 48 49 #include "LoggingNew.h" 50 #include "ObjectsTracker.h" 49 51 50 52 #include "VBox/com/ErrorInfo.h" … … 79 81 } 80 82 Assert(g_pClassFactoryStatsLock); 83 84 RTUUID uuid; 85 RTUuidCreate(&uuid); 86 unconst(mObjectId) = uuid; 81 87 } 82 88 … … 170 176 else 171 177 Assert(g_pClassFactoryStatsLock); 178 } 179 180 TrackedObjectsCollector gTrackedObjectsCollector; 181 182 HRESULT VirtualBoxBase::getObjectId(com::Guid &aId) 183 { 184 aId = mObjectId; 185 return S_OK; 186 } 187 188 HRESULT VirtualBoxBase::setTracked(uint64_t aLifeTime, uint64_t afterLifeTime) 189 { 190 Utf8Str strObjId = mObjectId.toString(); 191 Utf8Str strClassIID = Guid(getClassIID()).toString(); 192 HRESULT hrc = gTrackedObjectsCollector.setObj(strObjId, 193 strClassIID, 194 aLifeTime, 195 afterLifeTime, 196 /*ptrVirtualBoxBase,*/ 197 this); 198 Log2(("VirtualBoxBase::setTracked: inserted the Id %s for component %s with IID %s.\n", 199 strObjId.c_str(), getComponentName(), strClassIID.c_str())); 200 201 return hrc; 202 } 203 204 HRESULT VirtualBoxBase::invalidateTracked() 205 { 206 Utf8Str strObjId = mObjectId.toString(); 207 HRESULT hrc = gTrackedObjectsCollector.invalidateObj(strObjId); 208 209 return hrc; 172 210 } 173 211
Note:
See TracChangeset
for help on using the changeset viewer.