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

Method ProducerToken

concurrentqueue.h:3706–3712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3704
3705template<typename T, typename Traits>
3706ProducerToken::ProducerToken(ConcurrentQueue<T, Traits>& queue)
3707 : producer(queue.recycle_or_create_producer(true))
3708{
3709 if (producer != nullptr) {
3710 producer->token = this;
3711 }
3712}
3713
3714template<typename T, typename Traits>
3715ProducerToken::ProducerToken(BlockingConcurrentQueue<T, Traits>& queue)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected