Changeset 54971 in vbox for trunk/src/VBox/Main
- Timestamp:
- Mar 26, 2015 4:40:30 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 99229
- Location:
- trunk/src/VBox/Main/src-server
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/AudioAdapterImpl.cpp
r51498 r54971 5 5 6 6 /* 7 * Copyright (C) 2006-201 4Oracle Corporation7 * Copyright (C) 2006-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 247 247 248 248 /* the machine needs to be mutable */ 249 AutoMutable StateDependency adep(mParent);249 AutoMutableOrSavedStateDependency adep(mParent); 250 250 if (FAILED(adep.rc())) return adep.rc(); 251 251 -
trunk/src/VBox/Main/src-server/BandwidthControlImpl.cpp
r54511 r54971 396 396 397 397 /* the machine needs to be mutable */ 398 AutoMutable StateDependency adep(m->pParent);398 AutoMutableOrSavedStateDependency adep(m->pParent); 399 399 if (FAILED(adep.rc())) return adep.rc(); 400 400 … … 425 425 { 426 426 /* the machine needs to be mutable */ 427 AutoMutable StateDependency adep(m->pParent);427 AutoMutableOrSavedStateDependency adep(m->pParent); 428 428 if (FAILED(adep.rc())) return adep.rc(); 429 429 -
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r54966 r54971 1065 1065 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 1066 1066 1067 rc = i_checkStateDependency(Mutable StateDep);1067 rc = i_checkStateDependency(MutableOrSavedStateDep); 1068 1068 if (FAILED(rc)) return rc; 1069 1069 … … 1604 1604 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 1605 1605 1606 HRESULT rc = i_checkStateDependency(Mutable StateDep);1606 HRESULT rc = i_checkStateDependency(MutableOrSavedStateDep); 1607 1607 if (FAILED(rc)) return rc; 1608 1608 … … 2927 2927 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 2928 2928 2929 HRESULT rc = i_checkStateDependency(Mutable StateDep);2929 HRESULT rc = i_checkStateDependency(MutableOrSavedStateDep); 2930 2930 if (FAILED(rc)) return rc; 2931 2931 … … 2950 2950 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 2951 2951 2952 HRESULT rc = i_checkStateDependency(Mutable StateDep);2952 HRESULT rc = i_checkStateDependency(MutableOrSavedStateDep); 2953 2953 if (FAILED(rc)) return rc; 2954 2954 … … 2986 2986 */ 2987 2987 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 2988 HRESULT hrc = i_checkStateDependency(Mutable StateDep);2988 HRESULT hrc = i_checkStateDependency(MutableOrSavedStateDep); 2989 2989 if (SUCCEEDED(hrc)) 2990 2990 { … … 3032 3032 3033 3033 /* @todo deal with running state change. */ 3034 HRESULT rc = i_checkStateDependency(Mutable StateDep);3034 HRESULT rc = i_checkStateDependency(MutableOrSavedStateDep); 3035 3035 if (FAILED(rc)) return rc; 3036 3036 … … 3054 3054 3055 3055 /* @todo deal with running state change. */ 3056 HRESULT rc = i_checkStateDependency(Mutable StateDep);3056 HRESULT rc = i_checkStateDependency(MutableOrSavedStateDep); 3057 3057 if (FAILED(rc)) return rc; 3058 3058 … … 3077 3077 3078 3078 /* @todo deal with running state change. */ 3079 HRESULT rc = i_checkStateDependency(Mutable StateDep);3079 HRESULT rc = i_checkStateDependency(MutableOrSavedStateDep); 3080 3080 if (FAILED(rc)) return rc; 3081 3081 … … 3100 3100 3101 3101 /* @todo deal with running state change. */ 3102 HRESULT rc = i_checkStateDependency(Mutable StateDep);3102 HRESULT rc = i_checkStateDependency(MutableOrSavedStateDep); 3103 3103 if (FAILED(rc)) return rc; 3104 3104 … … 4606 4606 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 4607 4607 4608 HRESULT rc = i_checkStateDependency(Mutable StateDep);4608 HRESULT rc = i_checkStateDependency(MutableOrSavedStateDep); 4609 4609 if (FAILED(rc)) return rc; 4610 4611 AssertReturn(mData->mMachineState != MachineState_Saved, E_FAIL);4612 4610 4613 4611 if (Global::IsOnlineOrTransient(mData->mMachineState)) … … 5078 5076 HRESULT rc = S_OK; 5079 5077 5078 /// @todo r=klaus this is stupid... why is the saved state always deleted? 5080 5079 // discard saved state 5081 5080 if (mData->mMachineState == MachineState_Saved) -
trunk/src/VBox/Main/src-server/MediumAttachmentImpl.cpp
r51498 r54971 5 5 6 6 /* 7 * Copyright (C) 2006-201 4Oracle Corporation7 * Copyright (C) 2006-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 21 21 #include "Global.h" 22 22 23 #include "AutoStateDep.h"24 23 #include "AutoCaller.h" 25 24 #include "Logging.h" -
trunk/src/VBox/Main/src-server/NetworkAdapterImpl.cpp
r54840 r54971 5 5 6 6 /* 7 * Copyright (C) 2006-201 4Oracle Corporation7 * Copyright (C) 2006-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 626 626 HRESULT NetworkAdapter::setNATNetwork(const com::Utf8Str &aNATNetwork) 627 627 { 628 629 630 628 /* the machine needs to be mutable */ 631 629 AutoMutableOrSavedOrRunningStateDependency adep(mParent); -
trunk/src/VBox/Main/src-server/ParallelPortImpl.cpp
r51498 r54971 5 5 6 6 /* 7 * Copyright (C) 2006-201 4Oracle Corporation7 * Copyright (C) 2006-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 345 345 { 346 346 /* the machine needs to be mutable */ 347 AutoMutable StateDependency adep(m->pMachine);347 AutoMutableOrSavedStateDependency adep(m->pMachine); 348 348 if (FAILED(adep.rc())) return adep.rc(); 349 349 -
trunk/src/VBox/Main/src-server/SerialPortImpl.cpp
r51498 r54971 5 5 6 6 /* 7 * Copyright (C) 2006-201 4Oracle Corporation7 * Copyright (C) 2006-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 228 228 { 229 229 /* the machine needs to be mutable */ 230 AutoMutable StateDependency adep(m->pMachine);230 AutoMutableOrSavedStateDependency adep(m->pMachine); 231 231 if (FAILED(adep.rc())) return adep.rc(); 232 232 … … 395 395 { 396 396 /* the machine needs to be mutable */ 397 AutoMutable StateDependency adep(m->pMachine);397 AutoMutableOrSavedStateDependency adep(m->pMachine); 398 398 if (FAILED(adep.rc())) return adep.rc(); 399 399 … … 434 434 { 435 435 /* the machine needs to be mutable */ 436 AutoMutable StateDependency adep(m->pMachine);436 AutoMutableOrSavedStateDependency adep(m->pMachine); 437 437 if (FAILED(adep.rc())) return adep.rc(); 438 438 -
trunk/src/VBox/Main/src-server/StorageControllerImpl.cpp
r51498 r54971 7 7 8 8 /* 9 * Copyright (C) 2008-201 4Oracle Corporation9 * Copyright (C) 2008-2015 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as -
trunk/src/VBox/Main/src-server/USBDeviceFilterImpl.cpp
r51498 r54971 5 5 6 6 /* 7 * Copyright (C) 2006-201 4Oracle Corporation7 * Copyright (C) 2006-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 454 454 { 455 455 /* the machine needs to be mutable */ 456 AutoMutable StateDependency adep(mParent->i_getMachine());456 AutoMutableOrSavedOrRunningStateDependency adep(mParent->i_getMachine()); 457 457 if (FAILED(adep.rc())) return adep.rc(); 458 458 … … 492 492 { 493 493 /* the machine needs to be mutable */ 494 AutoMutable StateDependency adep(mParent->i_getMachine());494 AutoMutableOrSavedOrRunningStateDependency adep(mParent->i_getMachine()); 495 495 if (FAILED(adep.rc())) return adep.rc(); 496 496 … … 601 601 { 602 602 /* the machine needs to be mutable */ 603 AutoMutable StateDependency adep(mParent->i_getMachine());603 AutoMutableOrSavedOrRunningStateDependency adep(mParent->i_getMachine()); 604 604 if (FAILED(adep.rc())) return adep.rc(); 605 605 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); … … 646 646 { 647 647 /* the machine needs to be mutable */ 648 AutoMutable StateDependency adep(mParent->i_getMachine());648 AutoMutableOrSavedOrRunningStateDependency adep(mParent->i_getMachine()); 649 649 if (FAILED(adep.rc())) return adep.rc(); 650 650 … … 787 787 { 788 788 /* the machine needs to be mutable */ 789 AutoMutable StateDependency adep(mParent->i_getMachine());789 AutoMutableOrSavedOrRunningStateDependency adep(mParent->i_getMachine()); 790 790 if (FAILED(adep.rc())) return adep.rc(); 791 791 -
trunk/src/VBox/Main/src-server/USBDeviceFiltersImpl.cpp
r51498 r54971 1 1 /* $Id$ */ 2 2 /** @file 3 * Implementation of IUSB Controller.3 * Implementation of IUSBDeviceFilters. 4 4 */ 5 5 6 6 /* 7 * Copyright (C) 2005-201 4Oracle Corporation7 * Copyright (C) 2005-2015 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 321 321 322 322 /* the machine needs to be mutable */ 323 AutoMutable StateDependency adep(m->pParent);323 AutoMutableOrSavedOrRunningStateDependency adep(m->pParent); 324 324 if (FAILED(adep.rc())) return adep.rc(); 325 325 … … 348 348 349 349 /* the machine needs to be mutable */ 350 AutoMutable StateDependency adep(m->pParent);350 AutoMutableOrSavedOrRunningStateDependency adep(m->pParent); 351 351 if (FAILED(adep.rc())) return adep.rc(); 352 352 … … 408 408 #ifdef VBOX_WITH_USB 409 409 /* the machine needs to be mutable */ 410 AutoMutable StateDependency adep(m->pParent);410 AutoMutableOrSavedOrRunningStateDependency adep(m->pParent); 411 411 if (FAILED(adep.rc())) return adep.rc(); 412 412 -
trunk/src/VBox/Main/src-server/VRDEServerImpl.cpp
r54843 r54971 1 /* $Id$ */ 1 2 /** @file 2 3 *
Note:
See TracChangeset
for help on using the changeset viewer.