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

Method ~ProducerToken

include/dmlc/concurrentqueue.h:618–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

616 inline bool valid() const { return producer != nullptr; }
617
618 ~ProducerToken()
619 {
620 if (producer != nullptr) {
621 producer->token = nullptr;
622 producer->inactive.store(true, std::memory_order_release);
623 }
624 }
625
626 // Disable copying and assignment
627 ProducerToken(ProducerToken const&) MOODYCAMEL_DELETE_FUNCTION;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected