|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
pt.runtime.TaskThread
public abstract class TaskThread
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
protected java.util.Stack<TaskID> |
currentTaskStack
|
protected Taskpool |
taskpool
|
protected int |
threadID
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
TaskThread(Taskpool taskpool)
|
Method Summary | |
---|---|
TaskID |
currentExecutingTask()
Return the currently executing TaskID by this TaskThread |
protected boolean |
executeTask(TaskID task)
Executes the current task for this thread, and stores the result in the TaskID |
int |
getThreadID()
|
java.lang.Object |
getTP()
|
java.lang.Object |
getTP(java.lang.String key)
|
void |
setTP(java.lang.Object tp)
|
void |
setTP(java.lang.Object tp,
java.lang.String key)
|
Methods inherited from class java.lang.Thread |
---|
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 |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.Stack<TaskID> currentTaskStack
protected int threadID
protected Taskpool taskpool
Constructor Detail |
---|
public TaskThread(Taskpool taskpool)
Method Detail |
---|
protected boolean executeTask(TaskID task)
public TaskID currentExecutingTask()
public int getThreadID()
public void setTP(java.lang.Object tp)
public java.lang.Object getTP()
public void setTP(java.lang.Object tp, java.lang.String key)
public java.lang.Object getTP(java.lang.String key)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |