MCPcopy Create free account
hub / github.com/cameron314/concurrentqueue / swap

Method swap

concurrentqueue.h:1476–1476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1474 FreeList() : freeListHead(nullptr) { }
1475 FreeList(FreeList&& other) : freeListHead(other.freeListHead.load(std::memory_order_relaxed)) { other.freeListHead.store(nullptr, std::memory_order_relaxed); }
1476 void swap(FreeList& other) { details::swap_relaxed(freeListHead, other.freeListHead); }
1477
1478 FreeList(FreeList const&) MOODYCAMEL_DELETE_FUNCTION;
1479 FreeList& operator=(FreeList const&) MOODYCAMEL_DELETE_FUNCTION;

Callers

nothing calls this directly

Calls 1

swap_relaxedFunction · 0.85

Tested by

no test coverage detected