Changeset 94092 in vbox for trunk/src/VBox/Main
- Timestamp:
- Mar 4, 2022 10:09:02 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r94090 r94092 1600 1600 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 1601 1601 1602 rc = i_checkStateDependency(MutableOrRunningStateDep); 1603 if (FAILED(rc)) return rc; 1604 1602 1605 alock.release(); 1603 1606 rc = i_onCPUExecutionCapChange(aCPUExecutionCap); … … 1812 1815 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 1813 1816 1817 HRESULT rc = i_checkStateDependency(MutableOrRunningStateDep); 1818 if (FAILED(rc)) return rc; 1819 1814 1820 i_setModified(IsModified_MachineData); 1815 1821 mHWData.backup(); … … 1835 1841 #ifdef VBOX_WITH_PAGE_SHARING 1836 1842 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 1843 1844 HRESULT rc = i_checkStateDependency(MutableStateDep); 1845 if (FAILED(rc)) return rc; 1837 1846 1838 1847 /** @todo must support changes for running vms and keep this in sync with IGuest. */ … … 2651 2660 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 2652 2661 2662 rc = i_checkStateDependency(MutableOrRunningStateDep); 2663 if (FAILED(rc)) return rc; 2664 2653 2665 alock.release(); 2654 2666 rc = i_onClipboardModeChange(aClipboardMode); … … 2682 2694 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 2683 2695 2696 rc = i_checkStateDependency(MutableOrRunningStateDep); 2697 if (FAILED(rc)) return rc; 2698 2684 2699 alock.release(); 2685 2700 rc = i_onClipboardFileTransferModeChange(aEnabled); … … 2712 2727 2713 2728 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 2729 2730 rc = i_checkStateDependency(MutableOrRunningStateDep); 2731 if (FAILED(rc)) return rc; 2714 2732 2715 2733 alock.release(); … … 6410 6428 return setError(VBOX_E_OBJECT_IN_USE, tr("CPU %lu is already attached"), aCpu); 6411 6429 6430 rc = i_checkStateDependency(MutableOrRunningStateDep); 6431 if (FAILED(rc)) return rc; 6432 6412 6433 alock.release(); 6413 6434 rc = i_onCPUChange(aCpu, false); … … 6446 6467 if (aCpu == 0) 6447 6468 return setError(E_INVALIDARG, tr("It is not possible to detach CPU 0")); 6469 6470 rc = i_checkStateDependency(MutableOrRunningStateDep); 6471 if (FAILED(rc)) return rc; 6448 6472 6449 6473 alock.release();
Note:
See TracChangeset
for help on using the changeset viewer.