Lines Matching refs:mProducePos
71 chunk.data = &mBuffer[mProducePos]; in getProduceChunk()
72 chunk.size = (mProducePos >= mConsumePos) in getProduceChunk()
73 ? std::min(mCapacity - mProducePos, availableToProduce) in getProduceChunk()
74 : std::min(mConsumePos - mProducePos, availableToProduce); in getProduceChunk()
84 mProducePos = (mProducePos + size) % mCapacity; in produce()
99 const int chunkSz = (mProducePos >= mConsumePos) in produce()
100 ? std::min(mCapacity - mProducePos, availableToProduce) in produce()
101 : std::min(mConsumePos - mProducePos, availableToProduce); in produce()
102 void *dst = &mBuffer[mProducePos]; in produce()
106 mProducePos = (mProducePos + chunkSz) % mCapacity; in produce()
132 chunk.size = (mConsumePos >= mProducePos) in getConsumeChunk()
134 : std::min(mProducePos - mConsumePos, mAvailableToConsume); in getConsumeChunk()