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

Method nextId

src/fl/channels/channel.cpp.hpp:151–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149
150
151i32 Channel::nextId() {
152 static fl::atomic<i32> gNextChannelId(0); // okay static in header
153 return gNextChannelId.fetch_add(1);
154}
155
156fl::string Channel::makeName(i32 id, const fl::optional<fl::string>& configName) {
157 if (configName.has_value()) {

Callers

nothing calls this directly

Calls 1

fetch_addMethod · 0.45

Tested by

no test coverage detected