Changeset 38452 in vbox
- Timestamp:
- Aug 15, 2011 8:50:33 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 73500
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MediumImpl.cpp
r38420 r38452 2539 2539 // locking: we need the tree lock first because we access parent pointers 2540 2540 AutoReadLock treeLock(m->pVirtualBox->getMediaTreeLockHandle() COMMA_LOCKVAL_SRC_POS); 2541 Auto WriteLock alock(thisCOMMA_LOCKVAL_SRC_POS);2541 AutoMultiWriteLock2 alock(this, diff COMMA_LOCKVAL_SRC_POS); 2542 2542 2543 2543 if (m->type == MediumType_Writethrough) … … 2574 2574 diff->getLocationFull().c_str()); 2575 2575 } 2576 2577 Guid parentMachineRegistry; 2578 if (getFirstRegistryMachineId(parentMachineRegistry)) 2579 { 2580 /* since this medium has been just created it isn't associated yet */ 2581 diff->m->llRegistryIDs.push_back(parentMachineRegistry); 2582 } 2583 2576 2584 treeLock.release(); 2577 2585 alock.release(); … … 7236 7244 7237 7245 // now, at the end of this task (always asynchronous), save the settings 7246 if (SUCCEEDED(mrc)) 7238 7247 { 7239 7248 // save the settings
Note:
See TracChangeset
for help on using the changeset viewer.