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

Method swap

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

Source from the content-addressed store, hash-verified

555 }
556
557 void swap(ConsumerToken& other) noexcept
558 {
559 std::swap(initialOffset, other.initialOffset);
560 std::swap(lastKnownGlobalOffset, other.lastKnownGlobalOffset);
561 std::swap(itemsConsumedFromCurrent, other.itemsConsumedFromCurrent);
562 std::swap(currentProducer, other.currentProducer);
563 std::swap(desiredProducer, other.desiredProducer);
564 }
565
566 // Disable copying and assignment
567 ConsumerToken(ConsumerToken const&) = delete;

Callers

nothing calls this directly

Calls 1

swapFunction · 0.70

Tested by

no test coverage detected