MCPcopy Create free account
hub / github.com/dmlc/dmlc-core / swap

Method swap

include/dmlc/concurrentqueue.h:658–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

656 }
657
658 void swap(ConsumerToken& other) MOODYCAMEL_NOEXCEPT
659 {
660 std::swap(initialOffset, other.initialOffset);
661 std::swap(lastKnownGlobalOffset, other.lastKnownGlobalOffset);
662 std::swap(itemsConsumedFromCurrent, other.itemsConsumedFromCurrent);
663 std::swap(currentProducer, other.currentProducer);
664 std::swap(desiredProducer, other.desiredProducer);
665 }
666
667 // Disable copying and assignment
668 ConsumerToken(ConsumerToken const&) MOODYCAMEL_DELETE_FUNCTION;

Callers

nothing calls this directly

Calls 1

swapFunction · 0.70

Tested by

no test coverage detected