MCPcopy Create free account
hub / github.com/baldurk/renderdoc / DisconnectFromRemoteServer

Method DisconnectFromRemoteServer

qrenderdoc/Code/ReplayManager.cpp:345–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

343}
344
345void ReplayManager::DisconnectFromRemoteServer()
346{
347 m_RemoteHost.SetConnected(false);
348
349 if(m_Remote)
350 {
351 QMutexLocker autolock(&m_RemoteLock);
352 // give the remote to the thread to shut down since the lifetime is tied to the replay
353 // controller it has.
354 if(IsRunning())
355 {
356 m_OrphanedRemote = m_Remote;
357 }
358 else
359 {
360 m_Remote->ShutdownConnection();
361 }
362 m_Remote = NULL;
363 }
364
365 m_RemoteHost = RemoteHost();
366}
367
368void ReplayManager::ShutdownServer()
369{

Callers 4

~MainWindowMethod · 0.80
messageCheckMethod · 0.80
setRemoteHostMethod · 0.80
OnCaptureClosedMethod · 0.80

Calls 3

RemoteHostClass · 0.70
SetConnectedMethod · 0.45
ShutdownConnectionMethod · 0.45

Tested by

no test coverage detected