From 718cd99144bcf98cb66e3e5b6b4af85e17c7d2ec Mon Sep 17 00:00:00 2001 From: mdb Date: Mon, 31 Mar 2003 04:09:50 +0000 Subject: [PATCH] Made isRunning() public. git-svn-id: https://samskivert.googlecode.com/svn/trunk@1086 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../com/samskivert/util/LoopingThread.java | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/projects/samskivert/src/java/com/samskivert/util/LoopingThread.java b/projects/samskivert/src/java/com/samskivert/util/LoopingThread.java index f4272d01..4f150463 100644 --- a/projects/samskivert/src/java/com/samskivert/util/LoopingThread.java +++ b/projects/samskivert/src/java/com/samskivert/util/LoopingThread.java @@ -1,5 +1,5 @@ // -// $Id: LoopingThread.java,v 1.7 2002/10/07 17:52:59 mdb Exp $ +// $Id: LoopingThread.java,v 1.8 2003/03/31 04:09:50 mdb Exp $ // // samskivert library - useful routines for java programs // Copyright (C) 2001 Michael Bayne @@ -84,6 +84,18 @@ public class LoopingThread extends Thread } } + /** + * Indicates whether or not the thread should still be running. If a + * thread is calling this within {@link #iterate}, it should exit + * quickly and cleanly if the function returns false. It is + * automatically called as part of the {@link #iterate} loop, so + * normally a derived-class won't have to call it. + */ + public synchronized boolean isRunning () + { + return _running; + } + /** * Called to wake the thread up from any blocking wait that it might * be in. This function should result in the thread exiting the {@link @@ -140,17 +152,5 @@ public class LoopingThread extends Thread { } - /** - * Indicates whether or not the thread should still be running. If a - * thread is calling this within {@link #iterate}, it should exit - * quickly and cleanly if the function returns false. It is - * automatically called as part of the {@link #iterate} loop, so - * normally a derived-class won't have to call it. - */ - protected synchronized boolean isRunning () - { - return _running; - } - protected boolean _running = true; }