FastLED 3.9.15
Loading...
Searching...
No Matches

◆ instance()

ChannelManager & fl::ChannelManager::instance ( )
static

Get the global singleton instance.

Returns
Reference to the singleton ChannelManager
Note
Thread-safe singleton initialization

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

23 {
25 // Lazy initialization of platform-specific channel drivers
26 // C++11 guarantees thread-safe static initialization
27 static bool sInitialized = false; // okay static in header
28 if (!sInitialized) {
29 sInitialized = true;
30 platforms::initChannelDrivers();
31 }
32 return out;
33}
static T & instance() FL_NOEXCEPT
Definition singleton.h:41

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

Referenced by autoResearchSetExclusiveDriverByName(), fl::channelManager(), fl::Channel::resolveDynamicDriver(), fl::Channel::showPixels(), and DriverTestRunner::testSingleDriver().

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