From ab024a305451b941586f48685efdbedca74ad1cf Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Sat, 8 Nov 2008 00:10:17 +0000 Subject: [PATCH] Added isRunning(). git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@689 ed5b42cb-e716-0410-a449-f6a68f950b19 --- src/java/com/threerings/jme/JmeApp.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/java/com/threerings/jme/JmeApp.java b/src/java/com/threerings/jme/JmeApp.java index ffb204b5..4fd3ef84 100644 --- a/src/java/com/threerings/jme/JmeApp.java +++ b/src/java/com/threerings/jme/JmeApp.java @@ -256,18 +256,24 @@ public class JmeApp _finished = true; } - // documentation inherited from interface RunQueue + // from interface RunQueue public void postRunnable (Runnable r) { _evqueue.append(r); } - // documentation inherited from interface RunQueue + // from interface RunQueue public boolean isDispatchThread () { return Thread.currentThread() == _dispatchThread; } + // from interface RunQueue + public boolean isRunning () + { + return !_finished; + } + /** * Determines the display configuration and creates the display. This must * fill in {@link #_api} as a side-effect.