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

Method update

tests/fl/task/executor.cpp:211–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209 bool tried_reentry = false;
210
211 void update() override {
212 update_count++;
213 if (!tried_reentry) {
214 tried_reentry = true;
215 size_t before = update_count;
216 // This should be detected as re-entrancy and skipped
217 run(0);
218 // update_count should NOT have increased from the nested call
219 nested_update_count = update_count - before;
220 }
221 }
222 bool has_active_tasks() const override { return false; }
223 size_t active_task_count() const override { return 0; }
224 };

Callers

nothing calls this directly

Calls 1

runFunction · 0.50

Tested by

no test coverage detected