MCPcopy Create free account
hub / github.com/FastLED/FastLED / clear

Method clear

src/fl/log/async_logger.cpp.hpp:107–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107void AsyncLogger::clear() {
108 // Drain queue without printing
109 const char* msg;
110 fl::u16 len;
111 while (mQueue.tryPop(&msg, &len)) {
112 mQueue.commit();
113 }
114}
115
116fl::u32 AsyncLogger::droppedCount() const {
117 return mQueue.droppedCount();

Callers 1

log.cpp.hppFile · 0.45

Calls 2

tryPopMethod · 0.80
commitMethod · 0.80

Tested by

no test coverage detected