diff options
Diffstat (limited to 'src/net/java/games/jogl/Animator.java')
-rw-r--r-- | src/net/java/games/jogl/Animator.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/net/java/games/jogl/Animator.java b/src/net/java/games/jogl/Animator.java index ac6248487..c1f311e04 100644 --- a/src/net/java/games/jogl/Animator.java +++ b/src/net/java/games/jogl/Animator.java @@ -213,6 +213,14 @@ public class Animator { thread.start(); } + /** Indicates whether this animator is currently running. This + should only be used as a heuristic to applications because in + some circumstances the Animator may be in the process of + shutting down and this method will still return true. */ + public synchronized boolean isAnimating() { + return (thread != null); + } + /** Stops this animator. In most situations this method blocks until completion, except when called from the animation thread itself or in some cases from an implementation-internal thread like the |