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

Method fetch_add

src/platforms/shared/atomic.h:82–84  ·  view source on GitHub ↗

Fetch operations (used by various FastLED code)

Source from the content-addressed store, hash-verified

80
81 // Fetch operations (used by various FastLED code)
82 T fetch_add(T value) FL_NOEXCEPT {
83 return __atomic_fetch_add(&mValue, value, __ATOMIC_ACQ_REL);
84 }
85
86 T fetch_sub(T value) FL_NOEXCEPT {
87 return __atomic_fetch_sub(&mValue, value, __ATOMIC_ACQ_REL);

Callers 3

nextIdMethod · 0.45
ActiveStripTrackerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected