| 1715 | inline ProducerBase* next_prod() const { return static_cast<ProducerBase*>(next); } |
| 1716 | |
| 1717 | inline size_t size_approx() const |
| 1718 | { |
| 1719 | auto tail = tailIndex.load(std::memory_order_relaxed); |
| 1720 | auto head = headIndex.load(std::memory_order_relaxed); |
| 1721 | return details::circular_less_than(head, tail) ? static_cast<size_t>(tail - head) : 0; |
| 1722 | } |
| 1723 | |
| 1724 | inline index_t getTail() const { return tailIndex.load(std::memory_order_relaxed); } |
| 1725 | protected: |
no test coverage detected