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

Method ConsumerToken

include/dmlc/concurrentqueue.h:3677–3681  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3675
3676template<typename T, typename Traits>
3677ConsumerToken::ConsumerToken(ConcurrentQueue<T, Traits> &queue)
3678 : itemsConsumedFromCurrent(0), currentProducer(nullptr), desiredProducer(nullptr) {
3679 initialOffset = queue.nextExplicitConsumerId.fetch_add(1, std::memory_order_release);
3680 lastKnownGlobalOffset = -1;
3681}
3682
3683template<typename T, typename Traits>
3684ConsumerToken::ConsumerToken(BlockingConcurrentQueue<T, Traits> &queue)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected