* 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.
{
cancel();
while (true) {
- if (threadRunning()) {
+ if (threadAlive()) {
try {
Thread.sleep(40);
} catch (InterruptedException e) {
}
/**
- * 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;
@Override
public void run()
{
- if (!threadRunning()) {
+ if (!threadAlive()) {
return; // stopped before it ever started. how can this be? we just got invoked.
}
try {