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

Method try_dequeue_from_producer

concurrentqueue.h:1322–1325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1320 // Never allocates. Thread-safe.
1321 template<typename U>
1322 inline bool try_dequeue_from_producer(producer_token_t const& producer, U& item)
1323 {
1324 return static_cast<ExplicitProducer*>(producer.producer)->dequeue(item);
1325 }
1326
1327 // Attempts to dequeue several elements from a specific producer's inner queue.
1328 // Returns the number of items actually dequeued.

Callers 10

block_allocMethod · 0.80
multi_producersMethod · 0.80
block_reuseMethod · 0.80
leftovers_destroyedMethod · 0.80
block_index_resizedMethod · 0.80
index_wrappingMethod · 0.80
test_threadedMethod · 0.80
full_apiMethod · 0.80

Calls 1

dequeueMethod · 0.45

Tested by 10

block_allocMethod · 0.64
multi_producersMethod · 0.64
block_reuseMethod · 0.64
leftovers_destroyedMethod · 0.64
block_index_resizedMethod · 0.64
index_wrappingMethod · 0.64
test_threadedMethod · 0.64
full_apiMethod · 0.64