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

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.


Constructor Summary
 ThreadSegment(java.lang.Runnable target)
 
 

Method Summary
static ThreadSegment  currentThreadSegment()
 
java.lang.Object  getData()
 
void  join()
 
void  resume()
 
void  setData(java.lang.Object data)
 
static void  sleep(long millis)
 
static void  sleep(long millis, int nanos)
 
void  start()
 
void  stop()
 
void  stop(java.lang.Error o)
 
void  suspend()
 
static void  yield()
 
 
Methods inherited from class java.lang.Object
 clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadSegment

public ThreadSegment(java.lang.Runnable target)
Method Detail

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

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