public void CancelAll() { for (Timer timer = rootTimer; timer != null;) { Timer t = timer; timer = timer.next; t.Cancel(); } }
public void Cancel(String name) { for (Timer timer = rootTimer; timer != null;) { Timer t = timer; timer = timer.next; if (t.name == name) { t.Cancel(); } } }
public void CancelAll(Object target) { for (Timer timer = rootTimer; timer != null;) { Timer t = timer; timer = timer.next; if (t.callback.Target == target) { t.Cancel(); } } }
public void Cancel(TimerCallback callback) { for (Timer timer = rootTimer; timer != null;) { Timer t = timer; timer = timer.next; if (t.callback == callback) { t.Cancel(); } } }