Class cornell.slk.jkernel.core.ThreadSegment
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, toString, wait, wait, wait |
ThreadSegment
public ThreadSegment(java.lang.Runnable target)
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