/** Stops the timer, tasks will not be executed and time that passes will not be applied to the task delays. */ public void stop () { synchronized (threadLock) { thread().instances.removeValue(this, true); } }
/** Timer instance singleton for general application wide usage. Static methods on {@link Timer} make convenient use of this * instance. */ static public Timer instance () { synchronized (threadLock) { TimerThread thread = thread(); if (thread.instance == null) thread.instance = new Timer(); return thread.instance; } }
/** Stops the timer, tasks will not be executed and time that passes will not be applied to the task delays. */ public void stop () { synchronized (threadLock) { thread().instances.removeValue(this, true); } }
/** Timer instance singleton for general application wide usage. Static methods on {@link Timer} make convenient use of this * instance. */ static public Timer instance () { synchronized (threadLock) { TimerThread thread = thread(); if (thread.instance == null) thread.instance = new Timer(); return thread.instance; } }
/** Starts the timer if it was stopped. */ public void start () { synchronized (threadLock) { TimerThread thread = thread(); Array<Timer> instances = thread.instances; if (instances.contains(this, true)) return; instances.add(this); threadLock.notifyAll(); } }
/** Starts the timer if it was stopped. */ public void start () { synchronized (threadLock) { TimerThread thread = thread(); Array<Timer> instances = thread.instances; if (instances.contains(this, true)) return; instances.add(this); threadLock.notifyAll(); } }
/** Stops the timer, tasks will not be executed and time that passes will not be applied to the task delays. */ public void stop () { synchronized (threadLock) { thread().instances.removeValue(this, true); } }
/** Timer instance singleton for general application wide usage. Static methods on {@link Timer} make convenient use of this * instance. */ static public Timer instance () { synchronized (threadLock) { TimerThread thread = thread(); if (thread.instance == null) thread.instance = new Timer(); return thread.instance; } }
/** Starts the timer if it was stopped. */ public void start () { synchronized (threadLock) { TimerThread thread = thread(); Array<Timer> instances = thread.instances; if (instances.contains(this, true)) return; instances.add(this); threadLock.notifyAll(); } }