Contents | Package | Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS

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.


Field Summary
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.
Task  currentTask
 
FastCopyContext  freeFccList
 
boolean  suspendWaiting
 
java.lang.Thread  t
 
static java.util.Hashtable  threadToTDS
 
 

Constructor Summary
 ThreadTaskState(java.lang.Thread t, Task task, ThreadSegment threadSegment)
 
 

Method Summary
void  alertOut(ThreadSegment callerThreadSegment)
 
static ThreadTaskState  currentTDS()
 
void  deadTask()
 
void  rethrowAny(java.lang.Throwable e)
 
void  switchIn(Task targetTask)
 
void  switchOut(Task sourceTask, ThreadSegment callerThreadSegment)
 
java.lang.Throwable  translateException(Task sourceTask, ThreadSegment callerThreadSegment, java.lang.Throwable e)
Copy an exception from the target task back into the source task.
 
Methods inherited from class java.lang.Object
 , clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ThreadTaskState

ThreadTaskState(java.lang.Thread t,
                Task task,
                ThreadSegment threadSegment)
Method Detail

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

Contents | Package | Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS