Lines Matching refs:second
98 } else if (iter->second.find(value) == iter->second.end()) { in insert()
99 iter->second.insert(value); in insert()
110 if (iter->second.erase(value) > 0) { in erase()
113 if (iter->second.size() == 0) { in erase()
124 auto setIter = iter->second.find(value); in contains()
125 return setIter != iter->second.end(); in contains()
209 if (found->second->mSenderValidated && in fetch()
210 found->second->mStatus == BufferStatus::TRANSFER_FROM && in fetch()
211 found->second->mBufferId == bufferId) { in fetch()
212 found->second->mStatus = BufferStatus::TRANSFER_FETCH; in fetch()
216 *handle = bufferIt->second->handle(); in fetch()
264 iter->second->mOwnerCount++; in handleOwnBuffer()
275 iter->second->mOwnerCount--; in handleReleaseBuffer()
276 if (iter->second->mOwnerCount == 0 && in handleReleaseBuffer()
277 iter->second->mTransactionCount == 0) { in handleReleaseBuffer()
278 mStats.onBufferUnused(iter->second->mAllocSize); in handleReleaseBuffer()
304 found->second->mSender = message.connectionId; in handleTransferTo()
305 found->second->mSenderValidated = true; in handleTransferTo()
315 bufferIter->second->mTransactionCount++; in handleTransferTo()
330 bufferIter->second->mTransactionCount++; in handleTransferFrom()
332 if (message.connectionId == found->second->mReceiver) { in handleTransferFrom()
333 found->second->mStatus = BufferStatus::TRANSFER_FROM; in handleTransferFrom()
345 if (!found->second->mSenderValidated) { in handleTransferResult()
352 bufferIter->second->mTransactionCount--; in handleTransferResult()
353 if (bufferIter->second->mOwnerCount == 0 in handleTransferResult()
354 && bufferIter->second->mTransactionCount == 0) { in handleTransferResult()
355 mStats.onBufferUnused(bufferIter->second->mAllocSize); in handleTransferResult()
415 for (const BufferId& bufferId : buffers->second) { in handleClose()
419 bufferIter->second->mOwnerCount--; in handleClose()
420 if (bufferIter->second->mOwnerCount == 0 && in handleClose()
421 bufferIter->second->mTransactionCount == 0) { in handleClose()
423 mStats.onBufferUnused(bufferIter->second->mAllocSize); in handleClose()
434 for (const TransactionId& transactionId : pending->second) { in handleClose()
437 if (!iter->second->mSenderValidated) { in handleClose()
440 BufferId bufferId = iter->second->mBufferId; in handleClose()
442 bufferIter->second->mTransactionCount--; in handleClose()
443 if (bufferIter->second->mOwnerCount == 0 && in handleClose()
444 bufferIter->second->mTransactionCount == 0) { in handleClose()
446 mStats.onBufferUnused(bufferIter->second->mAllocSize); in handleClose()
496 if (res.second) { in addNewBuffer()
526 it->second->mOwnerCount == 0 && it->second->mTransactionCount == 0) { in cleanUp()
527 mStats.onBufferEvicted(it->second->mAllocSize); in cleanUp()