Changeset 25149 in vbox for trunk/src/VBox/Main/StorageControllerImpl.cpp
- Timestamp:
- Dec 2, 2009 2:34:47 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/StorageControllerImpl.cpp
r24250 r25149 244 244 245 245 AutoCaller autoCaller(this); 246 CheckComRCReturnRC(autoCaller.rc());246 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 247 247 248 248 /* mName is constant during life time, no need to lock */ … … 257 257 258 258 AutoCaller autoCaller(this); 259 CheckComRCReturnRC(autoCaller.rc());259 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 260 260 261 261 AutoReadLock alock(this); … … 271 271 272 272 AutoCaller autoCaller(this); 273 CheckComRCReturnRC(autoCaller.rc());273 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 274 274 275 275 AutoReadLock alock(this); … … 283 283 { 284 284 AutoCaller autoCaller(this); 285 CheckComRCReturnRC(autoCaller.rc());285 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 286 286 287 287 AutoWriteLock alock(this); … … 337 337 338 338 AutoCaller autoCaller(this); 339 CheckComRCReturnRC(autoCaller.rc());339 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 340 340 341 341 AutoReadLock alock(this); … … 360 360 361 361 AutoCaller autoCaller(this); 362 CheckComRCReturnRC(autoCaller.rc());362 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 363 363 364 364 AutoReadLock alock(this); … … 383 383 384 384 AutoCaller autoCaller(this); 385 CheckComRCReturnRC(autoCaller.rc());385 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 386 386 387 387 AutoReadLock alock(this); … … 407 407 408 408 AutoCaller autoCaller(this); 409 CheckComRCReturnRC(autoCaller.rc());409 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 410 410 411 411 AutoReadLock alock(this); … … 474 474 475 475 AutoCaller autoCaller(this); 476 CheckComRCReturnRC(autoCaller.rc());476 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 477 477 478 478 /* the machine needs to be mutable */ 479 Machine::AutoMutableStateDependency adep 480 CheckComRCReturnRC(adep.rc());479 Machine::AutoMutableStateDependency adep(mParent); 480 if (FAILED(adep.rc())) return adep.rc(); 481 481 482 482 AutoWriteLock alock(this); … … 499 499 { 500 500 AutoCaller autoCaller(this); 501 CheckComRCReturnRC(autoCaller.rc());501 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 502 502 503 503 /* The machine doesn't need to be mutable. */ … … 513 513 { 514 514 AutoCaller autoCaller(this); 515 CheckComRCReturnRC(autoCaller.rc());515 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 516 516 517 517 /* The machine doesn't need to be mutable. */ … … 532 532 533 533 AutoCaller autoCaller(this); 534 CheckComRCReturnRC(autoCaller.rc());534 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 535 535 536 536 AutoReadLock alock(this); … … 564 564 { 565 565 AutoCaller autoCaller(this); 566 CheckComRCReturnRC(autoCaller.rc());566 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 567 567 568 568 /* the machine needs to be mutable */ 569 Machine::AutoMutableStateDependency adep 570 CheckComRCReturnRC(adep.rc());569 Machine::AutoMutableStateDependency adep(mParent); 570 if (FAILED(adep.rc())) return adep.rc(); 571 571 AutoWriteLock alock(this); 572 572
Note:
See TracChangeset
for help on using the changeset viewer.