Searched refs:readPtr (Results 1 – 1 of 1) sorted by relevance
1070 auto readPtr = mReadPtr->load(std::memory_order_relaxed); in beginRead() local1072 if (writePtr - readPtr > mDesc->getSize()) { in beginRead()1081 if (writePtr - readPtr < nBytesDesired) { in beginRead()1085 size_t readOffset = readPtr % mDesc->getSize(); in beginRead()1121 auto readPtr = mReadPtr->load(std::memory_order_relaxed); in commitRead() local1127 if (writePtr - readPtr > mDesc->getSize()) { in commitRead()1133 readPtr += nBytesRead; in commitRead()1134 mReadPtr->store(readPtr, std::memory_order_release); in commitRead()