FastLED 3.10.10
Loading...
Searching...
No Matches

◆ waitForReady()

bool fl::ChannelManager::waitForReady ( u32 timeoutMs = 1000)

Wait for all drivers to become READY.

Note
Polls drivers in a loop, calling async_run() and yielding with minimal delay
Uses time-based delays to avoid busy-waiting while allowing async tasks to run

Definition at line 584 of file manager.cpp.hpp.

584 {
585 bool ok = waitForState(false, timeoutMs);
586 if (!ok) {
587 FL_ERROR("ChannelManager: Timeout occurred while waiting for READY state");
588 }
589 return ok;
590}
FL_NO_INLINE bool waitForState(bool allowDraining, u32 timeoutMs) FL_NO_EXCEPT
Wait for READY, optionally accepting DRAINING, with shared wait logic.
#define FL_ERROR(...)
Definition log.h:373

References FL_ERROR, fl::FL_NO_EXCEPT, and waitForState().

Referenced by addDriverSlow(), clearAllDrivers(), onBeginFrame(), and reset().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: