Ejemplo n.º 1
0
        /// <summary>
        /// 开始时间片的处理
        /// </summary>
        public void Start()
        {
            if (m_Running == false)
            {
                m_Running = true;

                TimerThread.AddTimer(this);

                TimerProfile timerProfile = GetProfile();
                if (timerProfile != null)
                {
                    timerProfile.RegStart();
                }
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 停止时间片的处理
        /// </summary>
        public void Stop()
        {
            if (m_Running == true)
            {
                m_Running = false;

                TimerThread.RemoveTimer(this);

                TimerProfile timerProfile = GetProfile();
                if (timerProfile != null)
                {
                    timerProfile.RegStopped();
                }
            }
        }
Ejemplo n.º 3
0
 public void TimerThreadConstructorTest()
 {
     TimerThread target = new TimerThread();
     Assert.Inconclusive( "TODO: 实现用来验证目标的代码" );
 }