Changeset 27278 in vbox for trunk/src/VBox/Main/SnapshotImpl.cpp
- Timestamp:
- Mar 11, 2010 12:32:23 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 58674
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/SnapshotImpl.cpp
r27256 r27278 1398 1398 1399 1399 /** 1400 * Implementation for IInternalMachineControl:: beginTakingSnapshot().1400 * Implementation for IInternalMachineControl::endTakingSnapshot(). 1401 1401 * 1402 1402 * Called by the Console when it's done saving the VM state into the snapshot … … 1418 1418 AssertComRCReturn (autoCaller.rc(), autoCaller.rc()); 1419 1419 1420 Auto MultiWriteLock2 alock(mParent,this COMMA_LOCKVAL_SRC_POS);1420 AutoWriteLock machineLock(this COMMA_LOCKVAL_SRC_POS); 1421 1421 1422 1422 AssertReturn( !aSuccess … … 1462 1462 rc = saveSettings(NULL); 1463 1463 // no need to change for whether VirtualBox.xml needs saving since 1464 // we can't have a machine XML rename pending at this point1464 // we'll save the global settings below anyway 1465 1465 } 1466 1466 … … 1493 1493 mSnapshotData.mLastState = MachineState_Null; 1494 1494 mSnapshotData.mSnapshot.setNull(); 1495 1496 // save VirtualBox.xml (media registry most probably changed with diff image) 1497 machineLock.release(); 1498 AutoWriteLock vboxLock(mParent COMMA_LOCKVAL_SRC_POS); 1499 mParent->saveSettings(); 1495 1500 1496 1501 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.