| 26 | |
| 27 | template<typename Fn> |
| 28 | void 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 |
nothing calls this directly
no outgoing calls
no test coverage detected