Lines Matching refs:aPeer
132 * @param aPeer The object to share.
144 HRESULT USBController::init(Machine *aParent, USBController *aPeer,
147 LogFlowThisFunc(("aParent=%p, aPeer=%p, fReshare=%RTbool\n",
148 aParent, aPeer, fReshare));
150 ComAssertRet(aParent && aPeer, E_INVALIDARG);
159 AutoCaller peerCaller(aPeer);
164 AutoWriteLock peerLock(aPeer COMMA_LOCKVAL_SRC_POS);
166 unconst(aPeer->m->pPeer) = this;
167 m->bd.attach (aPeer->m->bd);
171 unconst(m->pPeer) = aPeer;
173 AutoReadLock peerLock(aPeer COMMA_LOCKVAL_SRC_POS);
174 m->bd.share (aPeer->m->bd);
189 HRESULT USBController::initCopy(Machine *aParent, USBController *aPeer)
191 LogFlowThisFunc(("aParent=%p, aPeer=%p\n", aParent, aPeer));
193 ComAssertRet(aParent && aPeer, E_INVALIDARG);
203 AutoWriteLock thatlock(aPeer COMMA_LOCKVAL_SRC_POS);
204 m->bd.attachCopy(aPeer->m->bd);