Changeset 26200 in vbox for trunk/src/VBox
- Timestamp:
- Feb 3, 2010 3:17:42 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 57222
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MachineImpl.cpp
r26193 r26200 2975 2975 medium->attachTo(mData->mUuid); 2976 2976 pAttach->updateMedium(medium, false /* aImplicit */); 2977 setModified(IsModified_Storage); 2977 2978 } 2978 2979 -
trunk/src/VBox/Main/MediumAttachmentImpl.cpp
r26171 r26200 358 358 } 359 359 360 /** Must be called from under this object's AND the machine'swrite lock. */360 /** Must be called from under this object's write lock. */ 361 361 void MediumAttachment::updateMedium(const ComObjPtr<Medium> &aMedium, bool aImplicit) 362 362 { 363 Assert(m->pMachine->isWriteLockOnCurrentThread());364 363 Assert(isWriteLockOnCurrentThread()); 365 364 … … 367 366 m->bd->pMedium = aMedium; 368 367 m->bd->fImplicit = aImplicit; 369 370 m->pMachine->setModified(Machine::IsModified_Storage); 371 } 372 373 /** Must be called from under this object's AND the machine's write lock. */ 368 } 369 370 /** Must be called from under this object's write lock. */ 374 371 void MediumAttachment::updatePassthrough(bool aPassthrough) 375 372 { 376 Assert(m->pMachine->isWriteLockOnCurrentThread());377 373 Assert(isWriteLockOnCurrentThread()); 378 374 379 375 m->bd.backup(); 380 376 m->bd->fPassthrough = aPassthrough; 381 382 m->pMachine->setModified(Machine::IsModified_Storage); 383 } 384 377 } 378
Note:
See TracChangeset
for help on using the changeset viewer.