public static class ThreadManager.Thread
extends java.lang.Thread
Constructor and Description |
---|
ThreadManager.Thread(ThreadManager tm)
Ct to create a manageable thread.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isBusy()
Is the current thread busy?
|
protected boolean |
mustDie()
This function MUST be polled during the threads run loop.
|
protected void |
requestDie()
Force termination of the current thread.
|
protected void |
setBusy()
This function MUST be called from the threads main loop BEFORE the real work starts.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public ThreadManager.Thread(ThreadManager tm)
tm
- the ThreadManager objectprotected void setBusy()
protected void requestDie()
protected boolean mustDie()
public boolean isBusy()