MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / size_approx

Method size_approx

Source/ThirdParty/concurrentqueue.h:1523–1528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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:

Callers 2

try_dequeueFunction · 0.45
size_approxFunction · 0.45

Calls 2

circular_less_thanFunction · 0.70
loadMethod · 0.45

Tested by

no test coverage detected