MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / ProducerToken

Class ProducerToken

Source/ThirdParty/concurrentqueue.h:261–261  ·  view source on GitHub ↗

When producing or consuming many elements, the most efficient way is to: 1) Use one of the bulk-operation methods of the queue with a token 2) Failing that, use the bulk-operation methods without a token 3) Failing that, create a token and use that with the single-item methods 4) Failing that, use the single-parameter methods of the queue Having said that, don't create tokens willy-nilly -- ideall

Source from the content-addressed store, hash-verified

259// Having said that, don't create tokens willy-nilly -- ideally there should be
260// a maximum of one token per thread (of each kind).
261struct ProducerToken;
262struct ConsumerToken;
263
264template<typename T, typename Traits> class ConcurrentQueue;

Callers

nothing calls this directly

Calls 1

swapFunction · 0.70

Tested by

no test coverage detected