Home
last modified time | relevance | path

Searched refs:lastWritePos (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/media/tests/NativeMidiDemo/jni/
Dmessagequeue.cpp32 static unsigned long long lastWritePos = 0; in writeMessage() local
44 size_t wrappedWritePos = lastWritePos % messageBufferSize; in writeMessage()
48 lastWritePos += tailLen; in writeMessage()
53 lastWritePos += messageLen; in writeMessage()
54 messagesLastWritePosition.store(lastWritePos); in writeMessage()
70 unsigned long long lastWritePos = messagesLastWritePosition.load(); in getRecentMessagesForJava() local
71 if (lastWritePos - lastReadPos > messageBufferSize) { in getRecentMessagesForJava()
74 lastReadPos = lastWritePos; in getRecentMessagesForJava()
77 if (lastWritePos == lastReadPos) return result; in getRecentMessagesForJava()
78 if (lastWritePos / messageBufferSize == lastReadPos / messageBufferSize) { in getRecentMessagesForJava()
[all …]