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

◆ async_log_service()

void fl::async_log_service ( )

Definition at line 203 of file async_logger.cpp.hpp.

203 {
204 // Get background flush state
206
207 // Quick check - return immediately if no flush needed
208 if (!state.mNeedsFlush) {
209 return;
210 }
211
212 // Clear flag
213 state.mNeedsFlush = false;
214
215 // Flush all instantiated async loggers (uses ActiveLoggerRegistry)
216 // Only flushes loggers that have been accessed via template functions
217 fl::size n = state.mMessagesPerTick;
218 detail::ActiveLoggerRegistry::instance().forEach([n](AsyncLogger& logger) {
219 logger.flushN(n);
220 });
221}
TestState state
static T & instance() FL_NOEXCEPT
Definition singleton.h:41
static ActiveLoggerRegistry & instance()

References fl::AsyncLogger::flushN(), fl::detail::ActiveLoggerRegistry::forEach(), fl::detail::ActiveLoggerRegistry::instance(), fl::Singleton< T, N >::instance(), and state.

+ Here is the call graph for this function: