MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / size_approx

Function size_approx

tests/CDSChecker/corealgo.h:109–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109static int size_approx()
110{
111 auto tail = tailIndex.load(std::memory_order_relaxed);
112 auto head = headIndex.load(std::memory_order_relaxed);
113 return circular_less_than(head, tail) ? static_cast<int>(tail - head) : 0;
114}

Callers 1

user_mainFunction · 0.85

Calls 2

circular_less_thanFunction · 0.70
loadMethod · 0.45

Tested by

no test coverage detected