Searched refs:write_tail (Results 1 – 1 of 1) sorted by relevance
40 size_t write_tail = read_head > 0 ? read_head - 1 : buffer_size_ - 1; in GetFreeSize() local41 if (write_head <= write_tail) { in GetFreeSize()42 return write_tail - write_head; in GetFreeSize()44 return buffer_size_ - write_head + write_tail; in GetFreeSize()50 size_t write_tail = read_head > 0 ? read_head - 1 : buffer_size_ - 1; in AllocWriteSpace() local52 if (write_head < write_tail) { in AllocWriteSpace()53 if (write_head + record_size > write_tail) { in AllocWriteSpace()58 if (write_tail < record_size) { in AllocWriteSpace()