Searched refs:mProducePos (Results 1 – 2 of 2) sorted by relevance
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()[all …]
94 int mProducePos = 0; member