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

Function swap_relaxed

concurrentqueue.h:523–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521
522 template<typename T>
523 static inline void swap_relaxed(std::atomic<T>& left, std::atomic<T>& right)
524 {
525 T temp = left.load(std::memory_order_relaxed);
526 left.store(right.load(std::memory_order_relaxed), std::memory_order_relaxed);
527 right.store(temp, std::memory_order_relaxed);
528 }
529
530 template<typename T>
531 static inline T const& nomove(T const& x)

Callers 4

ConcurrentQueueClass · 0.85
swapMethod · 0.85
swapMethod · 0.85

Calls 2

loadMethod · 0.45
storeMethod · 0.45

Tested by

no test coverage detected