| 234 | } |
| 235 | |
| 236 | void 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 | |
| 251 | Lines LogSources::GetLines() |
| 252 | { |
nothing calls this directly
no test coverage detected