MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / dispatchToOwner

Method dispatchToOwner

plugins/WinDbgMemory/WinDbgMemoryPlugin.cpp:28–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27template<typename Fn>
28void WinDbgMemoryProvider::dispatchToOwner(Fn&& fn) const
29{
30 if (!m_dispatcher) { fn(); return; }
31
32 if (QThread::currentThread() == m_dispatcher->thread()) {
33 // Already on the owning thread — call directly
34 fn();
35 } else {
36 // Marshal to the owning thread and block until done
37 QMetaObject::invokeMethod(m_dispatcher, std::forward<Fn>(fn),
38 Qt::BlockingQueuedConnection);
39 }
40}
41
42// ──────────────────────────────────────────────────────────────────────────
43// WinDbgMemoryProvider implementation

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected