Changeset 31388 in vbox
- Timestamp:
- Aug 5, 2010 10:26:18 AM (14 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
-
HostImpl.cpp (modified) (3 diffs)
-
VirtualBoxImpl.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/HostImpl.cpp
r31387 r31388 529 529 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 530 530 531 std::list <ComObjPtr<HostNetworkInterface> > list;531 std::list<ComObjPtr<HostNetworkInterface> > list; 532 532 533 533 # ifdef VBOX_WITH_HOSTNETIF_API … … 1481 1481 AutoMultiWriteLock2 alock(this->lockHandle(), &m->usbListsLock COMMA_LOCKVAL_SRC_POS); 1482 1482 1483 1484 1483 for (settings::USBDeviceFiltersList::const_iterator it = data.llUSBDeviceFilters.begin(); 1485 1484 it != data.llUSBDeviceFilters.end(); … … 1514 1513 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 1515 1514 1516 AutoReadLock alock1(this COMMA_LOCKVAL_SRC_POS); 1517 AutoReadLock alock2(&m->usbListsLock COMMA_LOCKVAL_SRC_POS); 1515 AutoReadLock alock(&m->usbListsLock COMMA_LOCKVAL_SRC_POS); 1518 1516 1519 1517 data.llUSBDeviceFilters.clear(); -
trunk/src/VBox/Main/VirtualBoxImpl.cpp
r31387 r31388 3185 3185 try 3186 3186 { 3187 // lock the lists while we're here3188 AutoReadLock machinesLock(m->allMachines.getLockHandle() COMMA_LOCKVAL_SRC_POS);3189 3190 3187 // machines 3191 3188 settings::MachinesRegistry machinesTemp; 3192 3189 { 3190 AutoReadLock machinesLock(m->allMachines.getLockHandle() COMMA_LOCKVAL_SRC_POS); 3193 3191 for (MachinesOList::iterator it = m->allMachines.begin(); 3194 3192 it != m->allMachines.end(); … … 3274 3272 } 3275 3273 3274 mediaLock.release(); 3275 3276 3276 settings::DHCPServersList dhcpServersTemp; 3277 3277 { … … 3297 3297 // leave extra data alone, it's still in the config file 3298 3298 3299 /* host data (USB filters), will take host lock. */ 3300 { 3301 mediaLock.release(); 3302 machinesLock.release(); 3303 rc = m->pHost->saveSettings(m->pMainConfigFile->host); 3304 if (FAILED(rc)) throw rc; 3305 } 3299 // host data (USB filters) 3300 rc = m->pHost->saveSettings(m->pMainConfigFile->host); 3301 if (FAILED(rc)) throw rc; 3306 3302 3307 3303 rc = m->pSystemProperties->saveSettings(m->pMainConfigFile->systemProperties);
Note:
See TracChangeset
for help on using the changeset viewer.

