MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / Notify

Method Notify

DebugView++Lib/PolledLogSource.cpp:88–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void PolledLogSource::Notify()
89{
90 // this swap is essential for efficiency.
91 {
92 std::lock_guard<std::mutex> lock(m_mutex);
93 m_lines.swap(m_backBuffer);
94 }
95
96 for (auto& line : m_backBuffer)
97 {
98 if (line.timesValid)
99 Add(line.time, line.systemTime, line.pid, line.processName, line.message);
100 else
101 Add(line.pid, line.processName, line.message);
102 }
103 m_backBuffer.clear();
104}
105
106void PolledLogSource::Poll()
107{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected