FastLED 3.10.9
Loading...
Searching...
No Matches

◆ registry()

ChannelManager & fl::ChannelManager::registry ( )
static

Get the singleton WITHOUT registering platform default drivers.

For opt-in registration paths (BusTraits<B>::registerWithManager(), the legacy addLeds<> slim bridges) that name exactly one driver. Referencing only this accessor keeps initChannelDrivers() – and every engine it constructs – out of the link (#4618).

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

22 {
24 // The optional thunk is retained only when the registry itself is used.
25 // Local manager instances must not replace the singleton completion hook.
26 detail::setManagedCompletionWait([](u32 timeoutMs) {
27 return Singleton<ChannelManager>::instance().waitForReady(timeoutMs);
28 });
29 return manager;
30}
static T & instance() FL_NO_EXCEPT
Definition singleton.h:41
DriverCompletionWait setManagedCompletionWait(DriverCompletionWait wait) FL_NO_EXCEPT
Internal singleton hooks; return the previous hook to allow scoped tests.

References ChannelManager(), fl::FL_NO_EXCEPT, fl::Singleton< T, N >::instance(), and fl::detail::setManagedCompletionWait().

Referenced by fl::SlimBridgeShowPolicy< false, BATCHED >::enabled(), instance(), fl::SlimSpiBridgeController< CHIPSET, RGB_ORDER, B, B_WHICH >::resolveDriver(), and fl::SlimSpiBridgeController< CHIPSET, RGB_ORDER, B, B_WHICH >::showPixels().

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