Changeset 25310 in vbox for trunk/src/VBox/Main/SystemPropertiesImpl.cpp
- Timestamp:
- Dec 10, 2009 5:06:44 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/SystemPropertiesImpl.cpp
r25149 r25310 543 543 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 544 544 545 AutoReadLock alock(this );545 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 546 546 547 547 m_strDefaultMachineFolderFull.cloneTo(aDefaultMachineFolder); … … 556 556 557 557 /* VirtualBox::saveSettings() needs a write lock */ 558 AutoMultiWriteLock2 alock (mParent, this);558 AutoMultiWriteLock2 alock(mParent, this COMMA_LOCKVAL_SRC_POS); 559 559 560 560 HRESULT rc = setDefaultMachineFolder (aDefaultMachineFolder); … … 572 572 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 573 573 574 AutoReadLock alock(this );574 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 575 575 576 576 m_strDefaultHardDiskFolderFull.cloneTo(aDefaultHardDiskFolder); … … 585 585 586 586 /* VirtualBox::saveSettings() needs a write lock */ 587 AutoMultiWriteLock2 alock (mParent, this);587 AutoMultiWriteLock2 alock(mParent, this COMMA_LOCKVAL_SRC_POS); 588 588 589 589 HRESULT rc = setDefaultHardDiskFolder (aDefaultHardDiskFolder); … … 603 603 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 604 604 605 AutoReadLock alock(this );605 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 606 606 607 607 SafeIfaceArray<IMediumFormat> mediumFormats (mMediumFormats); … … 618 618 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 619 619 620 AutoReadLock alock(this );620 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 621 621 622 622 m_strDefaultHardDiskFormat.cloneTo(aDefaultHardDiskFormat); … … 631 631 632 632 /* VirtualBox::saveSettings() needs a write lock */ 633 AutoMultiWriteLock2 alock (mParent, this);633 AutoMultiWriteLock2 alock(mParent, this COMMA_LOCKVAL_SRC_POS); 634 634 635 635 HRESULT rc = setDefaultHardDiskFormat (aDefaultHardDiskFormat); … … 647 647 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 648 648 649 AutoReadLock alock(this );649 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 650 650 651 651 m_strRemoteDisplayAuthLibrary.cloneTo(aRemoteDisplayAuthLibrary); … … 660 660 661 661 /* VirtualBox::saveSettings() needs a write lock */ 662 AutoMultiWriteLock2 alock (mParent, this);662 AutoMultiWriteLock2 alock(mParent, this COMMA_LOCKVAL_SRC_POS); 663 663 664 664 HRESULT rc = setRemoteDisplayAuthLibrary (aRemoteDisplayAuthLibrary); … … 676 676 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 677 677 678 AutoReadLock alock(this );678 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 679 679 680 680 m_strWebServiceAuthLibrary.cloneTo(aWebServiceAuthLibrary); … … 689 689 690 690 /* VirtualBox::saveSettings() needs a write lock */ 691 AutoMultiWriteLock2 alock (mParent, this);691 AutoMultiWriteLock2 alock(mParent, this COMMA_LOCKVAL_SRC_POS); 692 692 693 693 HRESULT rc = setWebServiceAuthLibrary (aWebServiceAuthLibrary); … … 706 706 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 707 707 708 AutoReadLock alock(this );708 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 709 709 710 710 *count = mLogHistoryCount; … … 719 719 720 720 /* VirtualBox::saveSettings() needs a write lock */ 721 AutoMultiWriteLock2 alock (mParent, this);721 AutoMultiWriteLock2 alock(mParent, this COMMA_LOCKVAL_SRC_POS); 722 722 723 723 mLogHistoryCount = count; … … 736 736 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 737 737 738 AutoReadLock alock(this );738 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 739 739 740 740 *aAudioDriver = mDefaultAudioDriver; … … 751 751 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 752 752 753 AutoWriteLock alock(this );753 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 754 754 755 755 HRESULT rc = S_OK; … … 780 780 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 781 781 782 AutoReadLock alock(this );782 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 783 783 784 784 data.strDefaultMachineFolder = m_strDefaultMachineFolder; … … 807 807 AssertComRCReturn (autoCaller.rc(), format); 808 808 809 AutoReadLock alock(this );809 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 810 810 811 811 for (MediumFormatList::const_iterator it = mMediumFormats.begin();
Note:
See TracChangeset
for help on using the changeset viewer.