Home
last modified time | relevance | path

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

/system/extras/simpleperf/
DRecordReadThread.cpp41 size_t write_tail = read_head > 0 ? read_head - 1 : buffer_size_ - 1; in GetFreeSize() local
42 if (write_head <= write_tail) { in GetFreeSize()
43 return write_tail - write_head; in GetFreeSize()
45 return buffer_size_ - write_head + write_tail; in GetFreeSize()
51 size_t write_tail = read_head > 0 ? read_head - 1 : buffer_size_ - 1; in AllocWriteSpace() local
53 if (write_head < write_tail) { in AllocWriteSpace()
54 if (write_head + record_size > write_tail) { in AllocWriteSpace()
59 if (write_tail < record_size) { in AllocWriteSpace()