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

Method exchange

src/platforms/shared/atomic.h:54–56  ·  view source on GitHub ↗

Exchange operation - atomically replaces the value and returns the old value

Source from the content-addressed store, hash-verified

52
53 // Exchange operation - atomically replaces the value and returns the old value
54 T exchange(T value, int order = memory_order_acq_rel) FL_NOEXCEPT {
55 return __atomic_exchange_n(&mValue, value, order);
56 }
57
58 // Pre-increment: ++atomic
59 // Returns the NEW value after increment

Callers 2

ChannelPollSignalClass · 0.45
waitMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected