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

Method swap

blockingconcurrentqueue.h:100–103  ·  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

98 // only the swapped queue (i.e. the tokens are tied to the
99 // queue's movable state, not the object itself).
100 inline void swap(BlockingConcurrentQueue& other) MOODYCAMEL_NOEXCEPT
101 {
102 swap_internal(other);
103 }
104
105private:
106 BlockingConcurrentQueue& swap_internal(BlockingConcurrentQueue& other)

Callers 2

swapFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected