MCPcopy Create free account
hub / github.com/dmlc/dmlc-core / size_approx

Method size_approx

include/dmlc/blockingconcurrentqueue.h:936–939  ·  view source on GitHub ↗

Returns an estimate of the total number of elements currently in the queue. This estimate is only accurate if the queue has completely stabilized before it is called (i.e. all enqueue and dequeue operations have completed and their memory effects are visible on the calling thread, and no further operations start while this method is being called). Thread-safe.

Source from the content-addressed store, hash-verified

934 // being called).
935 // Thread-safe.
936 inline size_t size_approx() const
937 {
938 return (size_t)sema->availableApprox();
939 }
940
941
942 // Returns true if the underlying atomic variables used by

Callers

nothing calls this directly

Calls 1

availableApproxMethod · 0.80

Tested by

no test coverage detected