Home
last modified time | relevance | path

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

/external/perfetto/src/base/
Dmetatrace.cc99 auto wr_index = wr_index_.fetch_add(1, std::memory_order_acq_rel); in AppendNewRecord() local
105 PERFETTO_DCHECK(wr_index >= rd_index); in AppendNewRecord()
106 auto size = wr_index - rd_index; in AppendNewRecord()
108 return At(wr_index); in AppendNewRecord()
126 return At(wr_index); in AppendNewRecord()
/external/flac/src/plugin_xmms/
Dhttp.c71 static gint sock, rd_index, wr_index, buffer_length, prebuffer_length; variable
204 if (wr_index >= rd_index) in http_used()
205 return wr_index - rd_index; in http_used()
206 return buffer_length - (rd_index - wr_index); in http_used()
211 if (rd_index > wr_index) in http_free()
212 return (rd_index - wr_index) - 1; in http_free()
213 return (buffer_length - (wr_index - rd_index)) - 1; in http_free()
650 cnt = min(http_free(), buffer_length - wr_index); in http_buffer_loop()
653 written = read(sock, buffer + wr_index, cnt); in http_buffer_loop()
666 wr_index = (wr_index + written) % buffer_length; in http_buffer_loop()
[all …]
/external/perfetto/include/perfetto/ext/base/
Dmetatrace.h239 auto wr_index = wr_index_.load(std::memory_order_relaxed); in GetSizeForTesting() local
241 PERFETTO_DCHECK(wr_index >= rd_index); in GetSizeForTesting()
242 return wr_index - rd_index; in GetSizeForTesting()