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

Function size

benchmarks/tbb/concurrent_priority_queue.h:208–208  ·  view source on GitHub ↗

Returns the current number of elements contained in the queue Returned value may not reflect results of pending operations. This operation reads shared data and will trigger a race condition. */

Source from the content-addressed store, hash-verified

206 /** Returned value may not reflect results of pending operations.
207 This operation reads shared data and will trigger a race condition. */
208 size_type size() const { return __TBB_load_with_acquire(my_size); }
209
210 //! Pushes elem onto the queue, increasing capacity of queue if necessary
211 /** This operation can be safely used concurrently with other push, try_pop or emplace operations. */

Callers 1

emptyFunction · 0.70

Calls 1

__TBB_load_with_acquireFunction · 0.85

Tested by

no test coverage detected