| 1521 | inline ProducerBase* next_prod() const { return static_cast<ProducerBase*>(next); } |
| 1522 | |
| 1523 | inline size_t size_approx() const |
| 1524 | { |
| 1525 | auto tail = tailIndex.load(std::memory_order_relaxed); |
| 1526 | auto head = headIndex.load(std::memory_order_relaxed); |
| 1527 | return details::circular_less_than(head, tail) ? static_cast<size_t>(tail - head) : 0; |
| 1528 | } |
| 1529 | |
| 1530 | inline index_t getTail() const { return tailIndex.load(std::memory_order_relaxed); } |
| 1531 | protected: |
no test coverage detected