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

Function swap

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

Swaps this queue's state with the other's. Not thread-safe. Swapping two queues does not invalidate their tokens, however the tokens that were created for one queue must be used with only the swapped queue (i.e. the tokens are tied to the queue's movable state, not the object itself).

Source from the content-addressed store, hash-verified

754 // only the swapped queue (i.e. the tokens are tied to the
755 // queue's movable state, not the object itself).
756 inline void swap(ConcurrentQueue& other) noexcept
757 {
758 swap_internal(other);
759 }
760
761private:
762 ConcurrentQueue& swap_internal(ConcurrentQueue& other)

Callers 8

ProducerTokenClass · 0.70
swapMethod · 0.70
ConsumerTokenClass · 0.70
swapMethod · 0.70
concurrentqueue.hFile · 0.70
ImplicitProducerKVPClass · 0.70
swapMethod · 0.70

Calls 1

swapMethod · 0.45

Tested by

no test coverage detected