Changeset 21878 in vbox for trunk/src/VBox/Main/SnapshotImpl.cpp
- Timestamp:
- Jul 30, 2009 12:42:08 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/SnapshotImpl.cpp
r21835 r21878 130 130 131 131 /* Enclose the state transition Ready->InUninit->NotReady */ 132 AutoUninitSpan autoUninitSpan 132 AutoUninitSpan autoUninitSpan(this); 133 133 if (autoUninitSpan.uninitDone()) 134 134 return; … … 251 251 CheckComRCReturnRC(autoCaller.rc()); 252 252 253 AutoReadLock alock 253 AutoReadLock alock(this); 254 254 255 255 m->id.toUtf16().cloneTo(aId); … … 264 264 CheckComRCReturnRC(autoCaller.rc()); 265 265 266 AutoReadLock alock 266 AutoReadLock alock(this); 267 267 268 268 m->name.cloneTo(aName); … … 302 302 CheckComRCReturnRC(autoCaller.rc()); 303 303 304 AutoReadLock alock 304 AutoReadLock alock(this); 305 305 306 306 m->description.cloneTo(aDescription); … … 336 336 CheckComRCReturnRC(autoCaller.rc()); 337 337 338 AutoReadLock alock 338 AutoReadLock alock(this); 339 339 340 340 *aTimeStamp = RTTimeSpecGetMilli(&m->timeStamp); … … 349 349 CheckComRCReturnRC(autoCaller.rc()); 350 350 351 AutoReadLock alock 351 AutoReadLock alock(this); 352 352 353 353 *aOnline = !stateFilePath().isNull(); … … 362 362 CheckComRCReturnRC(autoCaller.rc()); 363 363 364 AutoReadLock alock 364 AutoReadLock alock(this); 365 365 366 366 m->pMachine.queryInterfaceTo(aMachine); … … 375 375 CheckComRCReturnRC(autoCaller.rc()); 376 376 377 AutoReadLock alock 378 379 mParent.queryInterfaceTo 380 return S_OK; 381 } 382 383 STDMETHODIMP Snapshot::COMGETTER(Children) (ComSafeArrayOut 377 AutoReadLock alock(this); 378 379 mParent.queryInterfaceTo(aParent); 380 return S_OK; 381 } 382 383 STDMETHODIMP Snapshot::COMGETTER(Children) (ComSafeArrayOut(ISnapshot *, aChildren)) 384 384 { 385 385 CheckComArgOutSafeArrayPointerValid(aChildren); … … 537 537 ComObjPtr<Snapshot> Snapshot::findChildOrSelf(IN_BSTR aName) 538 538 { 539 ComObjPtr 540 AssertReturn 539 ComObjPtr<Snapshot> child; 540 AssertReturn(aName, child); 541 541 542 542 AutoCaller autoCaller(this); 543 543 AssertComRC(autoCaller.rc()); 544 544 545 AutoReadLock alock 545 AutoReadLock alock(this); 546 546 547 547 if (m->name == aName) … … 673 673 Key hwNode = aNode.createKey ("Hardware"); 674 674 HRESULT rc = snapshotMachine->saveHardware(hwNode); 675 CheckComRCReturnRC 675 CheckComRCReturnRC(rc); 676 676 } 677 677 … … 680 680 Key storageNode = aNode.createKey ("StorageControllers"); 681 681 HRESULT rc = snapshotMachine->saveStorageControllers(storageNode); 682 CheckComRCReturnRC 682 CheckComRCReturnRC(rc); 683 683 } 684 684 } … … 698 698 Key snapshotNode = snapshotsNode.createKey("Snapshot"); 699 699 rc = (*it)->saveSnapshotImpl(snapshotNode, aAttrsOnly); 700 CheckComRCReturnRC 700 CheckComRCReturnRC(rc); 701 701 } 702 702 }
Note:
See TracChangeset
for help on using the changeset viewer.