예제 #1
0
        public void CancelAll()
        {
            for (Timer timer = rootTimer; timer != null;)
            {
                Timer t = timer;
                timer = timer.next;

                t.Cancel();
            }
        }
예제 #2
0
        public void Cancel(String name)
        {
            for (Timer timer = rootTimer; timer != null;)
            {
                Timer t = timer;
                timer = timer.next;

                if (t.name == name)
                {
                    t.Cancel();
                }
            }
        }
예제 #3
0
        public void CancelAll(Object target)
        {
            for (Timer timer = rootTimer; timer != null;)
            {
                Timer t = timer;
                timer = timer.next;

                if (t.callback.Target == target)
                {
                    t.Cancel();
                }
            }
        }
예제 #4
0
        public void Cancel(TimerCallback callback)
        {
            for (Timer timer = rootTimer; timer != null;)
            {
                Timer t = timer;
                timer = timer.next;

                if (t.callback == callback)
                {
                    t.Cancel();
                }
            }
        }