Class cornell.slk.jkernel.core.ThreadTaskState
Source code
java.lang.Object
|
+----cornell.slk.jkernel.core.ThreadTaskState
- public final class ThreadTaskState
- extends java.lang.Object
Each thread has one ThreadTaskState object
associated with it. The ThreadTaskState object tracks
which task a thread is currently running in. It also
manages switches from one task to another, along with
the automatically generated Capability stub methods.
Methods inherited from class java.lang.Object
|
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
t
java.lang.Thread t
currentTask
public Task currentTask
activeThreadSegment
public ThreadSegment activeThreadSegment
- The following is the top thread segment on this thread's stack:
(this may be null initially - a thread segment is created on
demand. Only this thread may change activeThreadSegment from
null to non-null, in order to avoid synchronization.)
suspendWaiting
boolean suspendWaiting
freeFccList
FastCopyContext freeFccList
threadToTDS
static java.util.Hashtable threadToTDS
ThreadTaskState
ThreadTaskState(java.lang.Thread t,
Task task,
ThreadSegment threadSegment)
currentTDS
static ThreadTaskState currentTDS()
switchIn
public void switchIn(Task targetTask)
switchOut
public void switchOut(Task sourceTask,
ThreadSegment callerThreadSegment)
alertOut
public final void alertOut(ThreadSegment callerThreadSegment)
deadTask
public final void deadTask()
translateException
public java.lang.Throwable translateException(Task sourceTask,
ThreadSegment callerThreadSegment,
java.lang.Throwable e) throws RemoteException
- Copy an exception from the target task back into the source
task. This is called when an exception is thrown across
a cross-task call.
rethrowAny
public void rethrowAny(java.lang.Throwable e) throws RemoteException