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

Function try_dequeue_non_interleaved

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

Source from the content-addressed store, hash-verified

962 // Never allocates. Thread-safe.
963 template<typename U>
964 bool try_dequeue_non_interleaved(U& item)
965 {
966 for (auto ptr = producerListTail.load(std::memory_order_acquire); ptr != nullptr; ptr = ptr->next_prod()) {
967 if (ptr->dequeue(item)) {
968 return true;
969 }
970 }
971 return false;
972 }
973
974 // Attempts to dequeue from the queue using an explicit consumer token.
975 // Returns false if all producer streams appeared empty at the time they

Callers

nothing calls this directly

Calls 3

loadMethod · 0.45
next_prodMethod · 0.45
dequeueMethod · 0.45

Tested by

no test coverage detected