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

Function sys_yield

src/fl/system/yield.cpp.hpp:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19namespace fl {
20
21static void sys_yield() {
22 // Pure OS-level yield — no FastLED subsystem pumping.
23#ifdef FL_IS_ESP32
24 vTaskDelay(0);
25#elif FASTLED_MULTITHREADED
26 std::this_thread::yield(); // okay std namespace
27#endif
28 // Single-threaded non-RTOS platforms: no-op
29}
30
31void yield() {
32 sys_yield();

Callers 1

yieldFunction · 0.85

Calls 1

yieldFunction · 0.70

Tested by

no test coverage detected