Changeset 30377 in vbox for trunk/src/VBox/Main/DHCPServerImpl.cpp
- Timestamp:
- Jun 22, 2010 2:01:01 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 62978
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/DHCPServerImpl.cpp
r28800 r30377 150 150 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 151 151 152 /* VirtualBox::saveSettings() needs a write lock */ 153 AutoMultiWriteLock2 alock(mVirtualBox, this COMMA_LOCKVAL_SRC_POS); 154 152 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 155 153 m.enabled = aEnabled; 156 154 155 // save the global settings; for that we should hold only the VirtualBox lock 156 alock.release(); 157 AutoWriteLock vboxLock(mVirtualBox COMMA_LOCKVAL_SRC_POS); 157 158 HRESULT rc = mVirtualBox->saveSettings(); 158 159 … … 218 219 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 219 220 220 /* VirtualBox::saveSettings() needs a write lock */ 221 AutoMultiWriteLock2 alock(mVirtualBox, this COMMA_LOCKVAL_SRC_POS); 222 221 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 223 222 m.IPAddress = aIPAddress; 224 223 m.networkMask = aNetworkMask; … … 226 225 m.upperIP = aUpperIP; 227 226 227 // save the global settings; for that we should hold only the VirtualBox lock 228 alock.release(); 229 AutoWriteLock vboxLock(mVirtualBox COMMA_LOCKVAL_SRC_POS); 228 230 return mVirtualBox->saveSettings(); 229 231 }
Note:
See TracChangeset
for help on using the changeset viewer.