MCPcopy Create free account
hub / github.com/FastLED/FastLED / exchange

Method exchange

src/fl/stl/atomic.h:69–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 }
68
69 T exchange(T value, memory_order = memory_order_seq_cst) FL_NOEXCEPT {
70 T old = mValue;
71 mValue = value;
72 return old;
73 }
74
75 bool compare_exchange_weak(T& expected, T desired, memory_order = memory_order_seq_cst) FL_NOEXCEPT {
76 if (mValue == expected) {

Callers 3

setMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected