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

Method set

src/fl/channels/driver.h:106–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104 }
105
106 void set(PollNeededCallback callback) FL_NOEXCEPT {
107 if (callback.callback == nullptr) {
108 clear();
109 return;
110 }
111 Snapshot* snapshot = new Snapshot(callback); // ok bare allocation
112 retire(mSnapshot.exchange(snapshot, fl::memory_order_acq_rel));
113 }
114
115 void clear() FL_NOEXCEPT {
116 retire(mSnapshot.exchange(nullptr, fl::memory_order_acq_rel));

Callers 2

getStateMethod · 0.45
getPlaylistConfigMethod · 0.45

Calls 2

clearFunction · 0.50
exchangeMethod · 0.45

Tested by

no test coverage detected