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

Method OnProcessEnded

DebugView++Lib/LogSources.cpp:236–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236void LogSources::OnProcessEnded(DWORD pid, HANDLE handle)
237{
238 m_executor.CallAsync([this, pid, handle]
239 {
240 m_update();
241 auto flushedLines = m_newlineFilter.FlushLinesFromTerminatedProcess(pid, handle);
242 for (auto& line : flushedLines)
243 m_loopback->Add(line.pid, line.processName, line.message);
244 m_throttledUpdate();
245 auto it = m_pidMap.find(pid);
246 if (it != m_pidMap.end())
247 m_pidMap.erase(it);
248 });
249}
250
251Lines LogSources::GetLines()
252{

Callers

nothing calls this directly

Calls 3

CallAsyncMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected