Changeset 78068 in vbox for trunk/src/VBox/Main/src-server/RecordingSettingsImpl.cpp
- Timestamp:
- Apr 10, 2019 9:38:27 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 129924
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/RecordingSettingsImpl.cpp
r76553 r78068 65 65 66 66 /** 67 * Initializes the audio adapterobject.67 * Initializes the recording settings object. 68 68 * 69 69 * @returns COM result indicator … … 101 101 * it shares data with is destroyed. 102 102 */ 103 HRESULT RecordingSettings::init(Machine *aParent, RecordingSettings * that)104 { 105 LogFlowThisFuncEnter(); 106 LogFlowThisFunc(("aParent: %p, that: %p\n", aParent, that));107 108 ComAssertRet(aParent && that, E_INVALIDARG);103 HRESULT RecordingSettings::init(Machine *aParent, RecordingSettings *aThat) 104 { 105 LogFlowThisFuncEnter(); 106 LogFlowThisFunc(("aParent: %p, aThat: %p\n", aParent, aThat)); 107 108 ComAssertRet(aParent && aThat, E_INVALIDARG); 109 109 110 110 /* Enclose the state transition NotReady->InInit->Ready */ … … 115 115 116 116 unconst(m->pMachine) = aParent; 117 m->pPeer = that;118 119 AutoWriteLock thatlock( that COMMA_LOCKVAL_SRC_POS);120 121 m->bd.share( that->m->bd);122 m->mapScreenObj = that->m->mapScreenObj;117 m->pPeer = aThat; 118 119 AutoWriteLock thatlock(aThat COMMA_LOCKVAL_SRC_POS); 120 121 m->bd.share(aThat->m->bd); 122 m->mapScreenObj = aThat->m->mapScreenObj; 123 123 124 124 autoInitSpan.setSucceeded(); … … 133 133 * of the original object passed as an argument. 134 134 */ 135 HRESULT RecordingSettings::initCopy(Machine *aParent, RecordingSettings * that)136 { 137 LogFlowThisFuncEnter(); 138 LogFlowThisFunc(("aParent: %p, that: %p\n", aParent, that));139 140 ComAssertRet(aParent && that, E_INVALIDARG);135 HRESULT RecordingSettings::initCopy(Machine *aParent, RecordingSettings *aThat) 136 { 137 LogFlowThisFuncEnter(); 138 LogFlowThisFunc(("aParent: %p, aThat: %p\n", aParent, aThat)); 139 140 ComAssertRet(aParent && aThat, E_INVALIDARG); 141 141 142 142 /* Enclose the state transition NotReady->InInit->Ready */ … … 149 149 // mPeer is left null 150 150 151 AutoWriteLock thatlock( that COMMA_LOCKVAL_SRC_POS);152 153 m->bd.attachCopy( that->m->bd);154 m->mapScreenObj = that->m->mapScreenObj;151 AutoWriteLock thatlock(aThat COMMA_LOCKVAL_SRC_POS); 152 153 m->bd.attachCopy(aThat->m->bd); 154 m->mapScreenObj = aThat->m->mapScreenObj; 155 155 156 156 autoInitSpan.setSucceeded();
Note:
See TracChangeset
for help on using the changeset viewer.