Changeset 41528 in vbox for trunk/src/VBox/Main/src-server/HostImpl.cpp
- Timestamp:
- May 31, 2012 4:48:33 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/HostImpl.cpp
r41174 r41528 5 5 6 6 /* 7 * Copyright (C) 200 6-2011Oracle Corporation7 * Copyright (C) 2004-2012 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 173 173 Data() 174 174 : 175 #ifdef VBOX_WITH_USB176 usbListsLock(LOCKCLASS_USBLIST),177 #endif178 175 fDVDDrivesListBuilt(false), 179 176 fFloppyDrivesListBuilt(false) … … 183 180 184 181 #ifdef VBOX_WITH_USB 185 WriteLockHandle usbListsLock; // protects the below two lists186 187 182 USBDeviceFilterList llChildren; // all USB device filters 188 183 USBDeviceFilterList llUSBDeviceFilters; // USB device filters in use by the USB proxy service … … 779 774 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 780 775 781 Auto MultiWriteLock2 alock(this->lockHandle(), &m->usbListsLockCOMMA_LOCKVAL_SRC_POS);776 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 782 777 783 778 HRESULT rc = checkUSBProxyService(); … … 1229 1224 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 1230 1225 1231 Auto MultiWriteLock2 alock(this->lockHandle(), &m->usbListsLockCOMMA_LOCKVAL_SRC_POS);1226 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 1232 1227 1233 1228 clearError(); … … 1291 1286 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 1292 1287 1293 Auto MultiWriteLock2 alock(this->lockHandle(), &m->usbListsLockCOMMA_LOCKVAL_SRC_POS);1288 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 1294 1289 1295 1290 clearError(); … … 1568 1563 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 1569 1564 1570 Auto MultiWriteLock2 alock(this->lockHandle(), &m->usbListsLockCOMMA_LOCKVAL_SRC_POS);1565 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 1571 1566 1572 1567 for (settings::USBDeviceFiltersList::const_iterator it = data.llUSBDeviceFilters.begin(); … … 1602 1597 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 1603 1598 1604 AutoReadLock alock1(this COMMA_LOCKVAL_SRC_POS); 1605 AutoReadLock alock2(&m->usbListsLock COMMA_LOCKVAL_SRC_POS); 1599 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 1606 1600 1607 1601 data.llUSBDeviceFilters.clear(); … … 2010 2004 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 2011 2005 2012 AutoWriteLock alock( &m->usbListsLockCOMMA_LOCKVAL_SRC_POS);2006 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 2013 2007 2014 2008 m->llChildren.push_back(pChild); … … 2022 2016 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 2023 2017 2024 AutoWriteLock alock( &m->usbListsLockCOMMA_LOCKVAL_SRC_POS);2018 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 2025 2019 2026 2020 for (USBDeviceFilterList::iterator it = m->llChildren.begin(); … … 2102 2096 void Host::getUSBFilters(Host::USBDeviceFilterList *aGlobalFilters) 2103 2097 { 2104 AutoReadLock alock( &m->usbListsLockCOMMA_LOCKVAL_SRC_POS);2098 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 2105 2099 2106 2100 *aGlobalFilters = m->llUSBDeviceFilters;
Note:
See TracChangeset
for help on using the changeset viewer.