MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / size_approx

Method size_approx

source/util/concurrentqueue.h:1737–1742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1735 inline ProducerBase* next_prod() const { return static_cast<ProducerBase*>(next); }
1736
1737 inline size_t size_approx() const
1738 {
1739 auto tail = tailIndex.load(std::memory_order_relaxed);
1740 auto head = headIndex.load(std::memory_order_relaxed);
1741 return details::circular_less_than(head, tail) ? static_cast<size_t>(tail - head) : 0;
1742 }
1743
1744 inline index_t getTail() const { return tailIndex.load(std::memory_order_relaxed); }
1745 protected:

Callers 3

try_dequeueMethod · 0.45
size_approxMethod · 0.45
getForMethod · 0.45

Calls 2

circular_less_thanFunction · 0.85
loadMethod · 0.45

Tested by

no test coverage detected