Changeset 30882 in vbox
- Timestamp:
- Jul 16, 2010 3:20:43 PM (14 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
-
MachineImpl.cpp (modified) (2 diffs)
-
VirtualBoxImpl.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineImpl.cpp
r30847 r30882 9171 9171 void Machine::registerMetrics(PerformanceCollector *aCollector, Machine *aMachine, RTPROCESS pid) 9172 9172 { 9173 AssertReturnVoid(isWriteLockOnCurrentThread()); 9174 AssertPtrReturnVoid(aCollector); 9175 9173 9176 pm::CollectorHAL *hal = aCollector->getHAL(); 9174 9177 /* Create sub metrics */ … … 9287 9290 void Machine::unregisterMetrics(PerformanceCollector *aCollector, Machine *aMachine) 9288 9291 { 9289 aCollector->unregisterMetricsFor(aMachine); 9290 aCollector->unregisterBaseMetricsFor(aMachine); 9292 AssertReturnVoid(isWriteLockOnCurrentThread()); 9293 9294 if (aCollector) 9295 { 9296 aCollector->unregisterMetricsFor(aMachine); 9297 aCollector->unregisterBaseMetricsFor(aMachine); 9298 } 9291 9299 9292 9300 if (mGuestHAL) 9301 { 9293 9302 delete mGuestHAL; 9303 mGuestHAL = NULL; 9304 } 9294 9305 } 9295 9306 -
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r30881 r30882 2723 2723 * it done immediately. It reduces the number of locks needed and 2724 2724 * the lock contention in SessionMachine::uninit. */ 2725 mMachine->unregisterMetrics(mVirtualBox->performanceCollector(), mMachine); 2725 { 2726 AutoWriteLock mLock(mMachine COMMA_LOCKVAL_SRC_POS); 2727 mMachine->unregisterMetrics(mVirtualBox->performanceCollector(), mMachine); 2728 } 2726 2729 #endif /* VBOX_WITH_RESOURCE_USAGE_API */ 2727 2730
Note:
See TracChangeset
for help on using the changeset viewer.

