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

Method enqueue

src/platforms/shared/coroutine_context.cpp.hpp:182–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182void CoroutineRunner::enqueue(CoroutineContext* ctx) FL_NOEXCEPT {
183 if (!ctx) return;
184
185 // Check for duplicates
186 for (size_t i = 0; i < mCount; ++i) {
187 if (mQueue[i] == ctx) return;
188 }
189
190 if (mCount >= kMaxCoroutines) {
191 FL_WARN("CoroutineRunner: Queue full, cannot enqueue");
192 return;
193 }
194
195 mQueue[mCount++] = ctx;
196}
197
198void CoroutineRunner::remove(CoroutineContext* ctx) FL_NOEXCEPT {
199 for (size_t i = 0; i < mCount; ++i) {

Callers 5

createMethod · 0.45
showPixelsMethod · 0.45
showPixelsMethod · 0.45
ClocklessControllerClass · 0.45
TaskCoroutineStubImplMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected