コード例 #1
0
        public void PingRemote()
        {
            if (m_Remote == null)
            {
                return;
            }

            if (Monitor.TryEnter(m_Remote))
            {
                try
                {
                    // must only happen on render thread if running
                    if ((!Running || m_Thread == Thread.CurrentThread) && m_Remote != null)
                    {
                        if (!m_Remote.Ping())
                        {
                            m_RemoteHost.ServerRunning = false;
                        }
                    }
                }
                finally
                {
                    Monitor.Exit(m_Remote);
                }
            }
        }
コード例 #2
0
ファイル: RenderManager.cs プロジェクト: wumiliu/renderdoc
        public void PingRemote()
        {
            if (m_CopyInProgress)
            {
                return;
            }

            // must only happen on render thread if running
            if ((!Running || m_Thread == Thread.CurrentThread) && m_Remote != null)
            {
                if (!m_Remote.Ping())
                {
                    m_RemoteHost.ServerRunning = false;
                }
            }
        }