Searched refs:writePtr (Results 1 – 2 of 2) sorted by relevance
1073 auto writePtr = mWritePtr->load(std::memory_order_relaxed); in beginWrite() local1074 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() local1118 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() local1166 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()[all …]
56 uint8_t* writePtr = challenge.data(); in generateChallenge() local58 int bytesRead = getrandom(writePtr, bytesRemaining, /*flags=*/0); in generateChallenge()64 writePtr += bytesRead; in generateChallenge()