joeq.Scheduler
Class jq_Thread
java.lang.Object
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
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
jq_Thread
public jq_Thread(Thread t)
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.