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

Method UpdateSources

DebugView++Lib/LogSources.cpp:213–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213void LogSources::UpdateSources()
214{
215 assert(m_executor.IsExecutorThread());
216 std::vector<LogSource*> sources;
217 {
218 std::lock_guard<std::mutex> lock(m_mutex);
219 for (auto& pSource : m_sources)
220 {
221 sources.push_back(pSource.get());
222 }
223 }
224
225 for (auto& pSource : sources)
226 {
227 if (pSource->AtEnd())
228 {
229 pSource->Abort();
230 m_update();
231 InternalRemove(pSource);
232 }
233 }
234}
235
236void LogSources::OnProcessEnded(DWORD pid, HANDLE handle)
237{

Callers

nothing calls this directly

Calls 3

IsExecutorThreadMethod · 0.45
AtEndMethod · 0.45
AbortMethod · 0.45

Tested by

no test coverage detected