|
FastLED 3.9.15
|
| void fl::yield | ( | ) |
Yield to the platform scheduler.
On ESP32 (FreeRTOS), this calls vTaskDelay(0) which yields to any equal-or-higher priority tasks waiting to run. This is important for cooperative multitasking on ESP32 where WiFi, Bluetooth, and other system tasks need CPU time.
On multithreaded host platforms, this calls std::this_thread::yield().
On single-threaded non-RTOS platforms, this is a no-op.
Safe to call from any thread or FreeRTOS task.
Definition at line 31 of file yield.cpp.hpp.
References sys_yield().
Referenced by CFastLED::delay(), and fl::task::run().
Here is the call graph for this function:
Here is the caller graph for this function: