Class cornell.slk.jkernel.core.ThreadSegment
Source code
java.lang.Object
|
+----cornell.slk.jkernel.core.ThreadSegment
- public final class ThreadSegment
- extends java.lang.Object
A thread segment is the part of a thread that is currently
running in a particular task. Each time a cross-task call
is made, a new thread segment is spawned for the call to
run in.
stdlib comes with a java.lang.Thread implementation that
runs directly on top of ThreadSegment, so you normally
don't have to worry about ThreadSegments.
Methods inherited from class java.lang.Object
|
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
createLock
static java.lang.Object createLock
t
java.lang.Thread t
tds
ThreadTaskState tds
data
java.lang.Object data
alertFlag
boolean alertFlag
stopThrow
java.lang.Error stopThrow
suspended
boolean suspended
ThreadSegment
public ThreadSegment(java.lang.Runnable target)
ThreadSegment
ThreadSegment(java.lang.Runnable target,
Task task)
ThreadSegment
ThreadSegment(java.lang.Thread t,
ThreadTaskState tds)
currentThreadSegment
public static ThreadSegment currentThreadSegment()
setData
public void setData(java.lang.Object data)
getData
public java.lang.Object getData()
start
public final void start()
stop
public final void stop()
stop
public final void stop(java.lang.Error o)
suspend
public final void suspend()
resume
public final void resume()
join
public final void join() throws java.lang.InterruptedException
yield
public static void yield()
sleep
public static void sleep(long millis) throws java.lang.InterruptedException
sleep
public static void sleep(long millis,
int nanos) throws java.lang.InterruptedException