joeq.Scheduler
Class jq_Thread

java.lang.Object
  extended by joeq.Scheduler.jq_Thread
All Implemented Interfaces:
jq_DontAlign

public class jq_Thread
extends Object
implements jq_DontAlign

A jq_Thread corresponds to a Java (lightweight) thread.

Version:
$Id: jq_Thread.java,v 1.34 2004/09/30 03:35:31 joewhaley Exp $
Author:
John Whaley

Field Summary
static jq_Class _class
           
static jq_StaticMethod _destroyCurrentThread
           
static jq_InstanceField _isInterrupted
           
static jq_InstanceField _thread_switch_enabled
           
static int INITIAL_STACK_SIZE
           
 boolean is_delivering_exception
           
static jwutil.sync.AtomicCounter thread_id_factory
           
 
Constructor Summary
jq_Thread(Thread t)
           
 
Method Summary
 int countStackFrames()
           
static void destroyCurrentThread()
           
 void disableThreadSwitch()
           
 void enableThreadSwitch()
           
 Thread getJavaLangThreadObject()
           
 jq_NativeThread getNativeThread()
           
 jq_Thread getNext()
           
 int getPriority()
           
 jq_RegisterState getRegisterState()
           
 int getThreadId()
           
 void init()
           
 void interrupt()
           
 boolean isAlive()
           
 boolean isDaemon()
           
 boolean isInterrupted(boolean clear)
           
 boolean isThreadSwitchEnabled()
           
 void resume()
           
 void setDaemon(boolean b)
           
 void setPriority(int newPriority)
           
 void sleep(long millis)
           
 void start()
           
 void stop(Object o)
           
 void suspend()
           
 String toString()
           
 void yield()
           
 void yieldTo(jq_Thread t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

is_delivering_exception

public volatile boolean is_delivering_exception

INITIAL_STACK_SIZE

public static int INITIAL_STACK_SIZE

thread_id_factory

public static jwutil.sync.AtomicCounter thread_id_factory

_class

public static final jq_Class _class

_destroyCurrentThread

public static final jq_StaticMethod _destroyCurrentThread

_thread_switch_enabled

public static final jq_InstanceField _thread_switch_enabled

_isInterrupted

public static final jq_InstanceField _isInterrupted
Constructor Detail

jq_Thread

public jq_Thread(Thread t)
Method Detail

getJavaLangThreadObject

public Thread getJavaLangThreadObject()

toString

public String toString()
Overrides:
toString in class Object

getRegisterState

public jq_RegisterState getRegisterState()

getNativeThread

public jq_NativeThread getNativeThread()

isThreadSwitchEnabled

public boolean isThreadSwitchEnabled()

disableThreadSwitch

public void disableThreadSwitch()

enableThreadSwitch

public void enableThreadSwitch()

init

public void init()

start

public void start()

sleep

public void sleep(long millis)
           throws InterruptedException
Throws:
InterruptedException

yield

public void yield()

yieldTo

public void yieldTo(jq_Thread t)

setPriority

public void setPriority(int newPriority)

getPriority

public int getPriority()

stop

public void stop(Object o)

suspend

public void suspend()

resume

public void resume()

interrupt

public void interrupt()

isInterrupted

public boolean isInterrupted(boolean clear)

isAlive

public boolean isAlive()

isDaemon

public boolean isDaemon()

setDaemon

public void setDaemon(boolean b)

countStackFrames

public int countStackFrames()

getThreadId

public int getThreadId()

destroyCurrentThread

public static void destroyCurrentThread()

getNext

public jq_Thread getNext()


Copyright © 2001-2005 John Whaley. All Rights Reserved.