Changeset 40201 in vbox
- Timestamp:
- Feb 21, 2012 2:44:43 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 76366
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp
r40181 r40201 5 5 6 6 /* 7 * Copyright (C) 2006-201 1Oracle Corporation7 * Copyright (C) 2006-2012 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 1674 1674 ComObjPtr<Medium> pMedium; 1675 1675 1676 /* we don't access non-const data members so no need to lock */ 1676 // have to get write lock as the whole find/update sequence must be done 1677 // in one critical section, otherwise there are races which can lead to 1678 // multiple Medium objects with the same content 1679 AutoWriteLock treeLock(getMediaTreeLockHandle() COMMA_LOCKVAL_SRC_POS); 1677 1680 1678 1681 // check if the device type is correct, and see if a medium for the … … 1716 1719 if (SUCCEEDED(rc)) 1717 1720 { 1718 AutoWriteLock treeLock(getMediaTreeLockHandle() COMMA_LOCKVAL_SRC_POS);1719 1720 1721 switch (deviceType) 1721 1722 {
Note:
See TracChangeset
for help on using the changeset viewer.