MCPcopy Create free account
hub / github.com/apache/brpc / volatile_size

Method volatile_size

src/bthread/work_stealing_queue.h:137–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135 }
136
137 size_t volatile_size() const {
138 const size_t b = _bottom.load(butil::memory_order_relaxed);
139 const size_t t = _top.load(butil::memory_order_relaxed);
140 return (b <= t ? 0 : (b - t));
141 }
142
143 size_t capacity() const { return _capacity; }
144

Callers 2

rq_sizeMethod · 0.80
print_rq_sizesMethod · 0.80

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected