From 727884ffa4309ebfff47a28e082c79d3e5b311f3 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Fri, 24 Oct 2014 11:08:08 -0400 Subject: [PATCH] perform activity must be public, duhhh. --- kona/src/org/feistymeow/process/ethread.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kona/src/org/feistymeow/process/ethread.java b/kona/src/org/feistymeow/process/ethread.java index 26f70745..73e2acd7 100644 --- a/kona/src/org/feistymeow/process/ethread.java +++ b/kona/src/org/feistymeow/process/ethread.java @@ -51,7 +51,7 @@ public abstract class ethread implements Runnable * shot threads executed via runOnce, but matters for the periodic threads started with * runPeriodic. */ - abstract boolean performActivity(); + abstract public boolean performActivity(); /** * Begins execution of the thread. @@ -74,7 +74,7 @@ public abstract class ethread implements Runnable { cancel(); while (true) { - if (threadRunning()) { + if (threadAlive()) { try { Thread.sleep(40); } catch (InterruptedException e) { @@ -102,9 +102,9 @@ public abstract class ethread implements Runnable } /** - * Returns true if the thread isn't null. + * Returns true if the thread object is still alive. this does not necessarily mean it is currently active. */ - public boolean threadRunning() + public boolean threadAlive() { synchronized (c_lock) { return this.c_RealThread != null; @@ -128,7 +128,7 @@ public abstract class ethread implements Runnable @Override public void run() { - if (!threadRunning()) { + if (!threadAlive()) { return; // stopped before it ever started. how can this be? we just got invoked. } try { -- 2.34.1