Lines Matching refs:pMachine
612 ComObjPtr<Machine> pMachine;
613 if (SUCCEEDED(rc = pMachine.createObject()))
615 rc = pMachine->initFromSettings(this,
619 rc = i_registerMachine(pMachine);
931 const ComObjPtr<Machine> &pMachine = *it;
932 AutoCaller autoMachineCaller(pMachine);
935 AutoReadLock mlock(pMachine COMMA_LOCKVAL_SRC_POS);
937 if (pMachine->i_isAccessible())
939 const StringsList &thisGroups = pMachine->i_getGroups();
1101 const ComObjPtr<Machine> &pMachine = *it;
1102 AutoCaller autoMachineCaller(pMachine);
1105 AutoReadLock mlock(pMachine COMMA_LOCKVAL_SRC_POS);
1107 if (pMachine->i_isAccessible())
1109 uint32_t cNetworkAdapters = Global::getMaxNetworkAdapters(pMachine->i_getChipsetType());
1113 HRESULT rc = pMachine->GetNetworkAdapter(i, pNet.asOutParam());
1152 const ComObjPtr<Machine> &pMachine = *it;
1153 AutoCaller autoMachineCaller(pMachine);
1156 AutoReadLock mlock(pMachine COMMA_LOCKVAL_SRC_POS);
1158 if (pMachine->i_isAccessible())
1160 uint32_t cNetworkAdapters = Global::getMaxNetworkAdapters(pMachine->i_getChipsetType());
1164 HRESULT rc = pMachine->GetNetworkAdapter(i, pNet.asOutParam());
1601 Machine *pMachine = static_cast<Machine*>(aM);
1603 AutoCaller machCaller(pMachine);
1606 rc = i_registerMachine(pMachine);
1609 i_onMachineRegistered(pMachine->i_getId(), TRUE);
1673 const ComObjPtr<Machine> &pMachine = *it;
1674 AutoCaller autoMachineCaller(pMachine);
1677 AutoReadLock mlock(pMachine COMMA_LOCKVAL_SRC_POS);
1679 if (pMachine->i_isAccessible())
1681 const StringsList &thisGroups = pMachine->i_getGroups();
1695 saMachines.push_back(static_cast<IMachine *>(pMachine));
1725 ComPtr<IMachine> pMachine = saMachines[i];
1727 if (!pMachine.isNull())
1729 HRESULT rc = pMachine->COMGETTER(State)(&state);
3102 ComObjPtr<Machine> pMachine = *it;
3107 AutoCaller machCaller(pMachine);
3112 if (pMachine->i_getId() == aId)
3116 *aMachine = pMachine;
3150 ComObjPtr<Machine> &pMachine = *it;
3151 AutoCaller machCaller(pMachine);
3155 AutoReadLock machLock(pMachine COMMA_LOCKVAL_SRC_POS);
3156 if (pMachine->i_getName() == aName)
3160 *aMachine = pMachine;
3163 if (!RTPathCompare(pMachine->i_getSettingsFileFull().c_str(), aName.c_str()))
3167 *aMachine = pMachine;
4071 Machine *pMachine = *it;
4074 rc = pMachine->i_saveRegistryEntry(mre);
4166 ComObjPtr<Machine> pMachine;
4170 &pMachine);
4174 AutoLimitedCaller machCaller(pMachine);
4180 pMachine->i_getSettingsFileFull().c_str());
4464 * @param pMachine
4468 HRESULT VirtualBox::i_unregisterMachine(Machine *pMachine,
4473 m->allMachines.removeChild(pMachine);
4542 ComObjPtr<Machine> pMachine;
4546 &pMachine);
4549 AutoCaller machineCaller(pMachine);
4551 ASMAtomicIncU64(&pMachine->uRegistryNeedsSaving);
4579 ComObjPtr<Machine> pMachine;
4583 &pMachine);
4586 AutoCaller machineCaller(pMachine);
4591 uOld = ASMAtomicReadU64(&pMachine->uRegistryNeedsSaving);
4594 if (ASMAtomicCmpXchgU64(&pMachine->uRegistryNeedsSaving, 0, uOld))
4624 const ComObjPtr<Machine> &pMachine = *it;
4628 uOld = ASMAtomicReadU64(&pMachine->uRegistryNeedsSaving);
4631 if (ASMAtomicCmpXchgU64(&pMachine->uRegistryNeedsSaving, 0, uOld))
4637 AutoCaller autoCaller(pMachine);
4643 AutoWriteLock mlock(pMachine COMMA_LOCKVAL_SRC_POS);
4644 rc = pMachine->i_saveSettings(&fNeedsGlobalSettings,