| 1829 | } |
| 1830 | |
| 1831 | void MainWindow::remoteProbe() |
| 1832 | { |
| 1833 | if(!m_Ctx.IsCaptureLoaded() && !m_Ctx.IsCaptureLoading()) |
| 1834 | { |
| 1835 | m_Ctx.Config().UpdateEnumeratedProtocolDevices(); |
| 1836 | |
| 1837 | // fetch the latest list |
| 1838 | rdcarray<RemoteHost> hosts = m_Ctx.Config().GetRemoteHosts(); |
| 1839 | |
| 1840 | for(RemoteHost &host : hosts) |
| 1841 | { |
| 1842 | // don't mess with a host we're connected to - this is handled anyway |
| 1843 | if(host.IsConnected()) |
| 1844 | continue; |
| 1845 | |
| 1846 | // this will do the bulk of the status checking on this thread without holding any lock, then |
| 1847 | // grab the remote host lock and update the config's host (if it's still there) |
| 1848 | host.CheckStatus(); |
| 1849 | |
| 1850 | // bail as soon as we notice that we're done |
| 1851 | if(!m_RemoteProbeSemaphore.available()) |
| 1852 | return; |
| 1853 | } |
| 1854 | } |
| 1855 | } |
| 1856 | |
| 1857 | void MainWindow::messageCheck() |
| 1858 | { |
nothing calls this directly
no test coverage detected