Lines Matching refs:writePtr
1073 auto writePtr = mWritePtr->load(std::memory_order_relaxed); in beginWrite() local
1074 if (writePtr % sizeof(T) != 0) { in beginWrite()
1081 size_t writeOffset = writePtr % mDesc->getSize(); in beginWrite()
1117 auto writePtr = mWritePtr->load(std::memory_order_relaxed); in commitWrite() local
1118 writePtr += nBytesWritten; in commitWrite()
1119 mWritePtr->store(writePtr, std::memory_order_release); in commitWrite()
1160 auto writePtr = mWritePtr->load(std::memory_order_acquire); in beginRead() local
1166 if (writePtr % sizeof(T) != 0 || readPtr % sizeof(T) != 0) { in beginRead()
1174 if (writePtr - readPtr > mDesc->getSize()) { in beginRead()
1175 mReadPtr->store(writePtr, std::memory_order_release); in beginRead()
1183 if (writePtr - readPtr < nBytesDesired) { in beginRead()
1223 auto writePtr = mWritePtr->load(std::memory_order_acquire); in commitRead() local
1228 if (writePtr - readPtr > mDesc->getSize()) { in commitRead()
1229 mReadPtr->store(writePtr, std::memory_order_release); in commitRead()