| 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: |
no test coverage detected