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

Method try_pop

benchmarks/tbb/concurrent_queue.h:152–154  ·  view source on GitHub ↗

Attempt to dequeue an item from head of queue. Does not wait for item to become available. Returns true if successful; false otherwise. */

Source from the content-addressed store, hash-verified

150 /** Does not wait for item to become available.
151 Returns true if successful; false otherwise. */
152 bool try_pop( T& result ) {
153 return this->internal_try_pop( &result );
154 }
155
156 //! Return the number of items in the queue; thread unsafe
157 size_type unsafe_size() const {return this->internal_size();}

Callers 1

try_dequeueMethod · 0.45

Calls 1

internal_try_popMethod · 0.80

Tested by

no test coverage detected