Пример #1
0
        public void InFlushQueueTest()
        {
            ClientSocketManager clientSocket = null;                                    // TODO: 初始化为适当的值
            MessagePump         messagePump  = null;                                    // TODO: 初始化为适当的值
            NetState            target       = new NetState(clientSocket, messagePump); // TODO: 初始化为适当的值
            bool expected = false;                                                      // TODO: 初始化为适当的值
            bool actual;

            actual = target.InFlushQueue();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("验证此测试方法的正确性。");
        }
Пример #2
0
        /// <summary>
        /// 放入处理发送的客户端的集合内,等待处理
        /// </summary>
        /// <param name="netSatate"></param>
        internal void FlushNetStates(NetState netSatate)
        {
            if (netSatate.InFlushQueue() == false)
            {
                return;
            }

            m_LockNetStateFlush.Enter();
            {
                m_NetStateFlush.Enqueue(netSatate);
            }
            m_LockNetStateFlush.Exit();
        }