FastLED 3.10.8
Loading...
Searching...
No Matches

◆ async_log_service()

void fl::async_log_service ( )

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

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

References FL_NO_EXCEPT, 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: