Searched refs:write_tail (Results 1 – 1 of 1) sorted by relevance
41 size_t write_tail = read_head > 0 ? read_head - 1 : buffer_size_ - 1; in GetFreeSize() local42 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() local53 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()