Changeset 25310 in vbox for trunk/src/VBox/Main/AudioAdapterImpl.cpp
- Timestamp:
- Dec 10, 2009 5:06:44 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 55876
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/AudioAdapterImpl.cpp
r25286 r25310 110 110 AssertComRCReturnRC(thatCaller.rc()); 111 111 112 AutoReadLock thatLock (aThat);112 AutoReadLock thatLock(aThat COMMA_LOCKVAL_SRC_POS); 113 113 mData.share (aThat->mData); 114 114 … … 142 142 AssertComRCReturnRC(thatCaller.rc()); 143 143 144 AutoReadLock thatLock (aThat);144 AutoReadLock thatLock(aThat COMMA_LOCKVAL_SRC_POS); 145 145 mData.attachCopy (aThat->mData); 146 146 … … 180 180 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 181 181 182 AutoReadLock alock(this );182 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 183 183 184 184 *aEnabled = mData->mEnabled; … … 196 196 if (FAILED(adep.rc())) return adep.rc(); 197 197 198 AutoWriteLock alock(this );198 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 199 199 200 200 if (mData->mEnabled != aEnabled) … … 214 214 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 215 215 216 AutoReadLock alock(this );216 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 217 217 218 218 *aAudioDriver = mData->mAudioDriver; … … 230 230 if (FAILED(adep.rc())) return adep.rc(); 231 231 232 AutoWriteLock alock(this );232 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 233 233 234 234 HRESULT rc = S_OK; … … 293 293 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 294 294 295 AutoReadLock alock(this );295 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 296 296 297 297 *aAudioController = mData->mAudioController; … … 309 309 if (FAILED(adep.rc())) return adep.rc(); 310 310 311 AutoWriteLock alock(this );311 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 312 312 313 313 HRESULT rc = S_OK; … … 366 366 AssertComRCReturnRC(autoCaller.rc()); 367 367 368 AutoWriteLock alock(this );368 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 369 369 370 370 /* Note: we assume that the default values for attributes of optional … … 398 398 AssertComRCReturnRC(autoCaller.rc()); 399 399 400 AutoReadLock alock(this );400 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 401 401 402 402 data.fEnabled = !!mData->mEnabled; … … 415 415 AssertComRCReturn (autoCaller.rc(), false); 416 416 417 AutoWriteLock alock(this );417 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 418 418 419 419 bool changed = false; … … 446 446 /* lock both for writing since we modify both (mPeer is "master" so locked 447 447 * first) */ 448 AutoMultiWriteLock2 alock (mPeer, this);448 AutoMultiWriteLock2 alock(mPeer, this COMMA_LOCKVAL_SRC_POS); 449 449 450 450 if (mData.isBackedUp()) … … 477 477 /* peer is not modified, lock it for reading (aThat is "master" so locked 478 478 * first) */ 479 AutoReadLock rl(aThat );480 AutoWriteLock wl(this );479 AutoReadLock rl(aThat COMMA_LOCKVAL_SRC_POS); 480 AutoWriteLock wl(this COMMA_LOCKVAL_SRC_POS); 481 481 482 482 /* this will back up current data */
Note:
See TracChangeset
for help on using the changeset viewer.