Added isRunning().

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@689 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Michael Bayne
2008-11-08 00:10:17 +00:00
parent b6f41f765e
commit ab024a3054
+8 -2
View File
@@ -256,18 +256,24 @@ public class JmeApp
_finished = true; _finished = true;
} }
// documentation inherited from interface RunQueue // from interface RunQueue
public void postRunnable (Runnable r) public void postRunnable (Runnable r)
{ {
_evqueue.append(r); _evqueue.append(r);
} }
// documentation inherited from interface RunQueue // from interface RunQueue
public boolean isDispatchThread () public boolean isDispatchThread ()
{ {
return Thread.currentThread() == _dispatchThread; return Thread.currentThread() == _dispatchThread;
} }
// from interface RunQueue
public boolean isRunning ()
{
return !_finished;
}
/** /**
* Determines the display configuration and creates the display. This must * Determines the display configuration and creates the display. This must
* fill in {@link #_api} as a side-effect. * fill in {@link #_api} as a side-effect.