MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / OnTimer

Method OnTimer

WinArk/EtwView.cpp:493–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493LRESULT CEtwView::OnTimer(UINT, WPARAM id, LPARAM, BOOL&) {
494 if (m_IsMonitoring && id == 1) {
495 if (!m_TempEvents.empty()) {
496 std::lock_guard lock(m_EventsLock);
497 m_Events.insert(m_Events.end(), m_TempEvents.begin(), m_TempEvents.end());
498 m_OrgEvents.insert(m_OrgEvents.end(), m_TempEvents.begin(), m_TempEvents.end());
499 m_TempEvents.clear();
500 }
501 else if (!m_IsMonitoring) {
502 m_IsDraining = false;
503 }
504 UpdateList(m_List, static_cast<int>(m_Events.size()));
505 if (m_AutoScroll)
506 m_List.EnsureVisible(m_List.GetItemCount() - 1, FALSE);
507 if (m_IsActive)
508 UpdateEventStatus();
509 }
510 return 0;
511}
512
513LRESULT CEtwView::OnClear(WORD, WORD, HWND, BOOL&) {
514 CWaitCursor wait;

Callers

nothing calls this directly

Calls 5

emptyMethod · 0.80
clearMethod · 0.80
endMethod · 0.45
beginMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected