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

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.


Field Summary
boolean  alertFlag
 
static java.lang.Object  createLock
 
java.lang.Object  data
 
java.lang.Error  stopThrow
 
boolean  suspended
 
java.lang.Thread  t
 
ThreadTaskState  tds
 
 

Constructor Summary
 ThreadSegment(java.lang.Runnable target)
 
 ThreadSegment(java.lang.Runnable target, Task task)
 
 ThreadSegment(java.lang.Thread t, ThreadTaskState tds)
 
 

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, registerNatives, toString, wait, wait, wait
 

Field Detail

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

ThreadSegment

public ThreadSegment(java.lang.Runnable target)

ThreadSegment

ThreadSegment(java.lang.Runnable target,
              Task task)

ThreadSegment

ThreadSegment(java.lang.Thread t,
              ThreadTaskState tds)
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