Build 1.0_r1(from source)

java.lang
Class VMThread

java.lang.Object
  extended by java.lang.VMThread

 class VMThread
extends Object


Field Summary
(package private) static Thread.State[] STATE_MAP
          Holds a mapping from native Thread statii to Java one.
(package private)  Thread thread
           
(package private)  int vmData
           
 
Constructor Summary
VMThread(Thread t)
           
 
Method Summary
(package private) static void create(Thread t, long stacksize)
           
(package private) static Thread currentThread()
           
(package private)  int getStatus()
           
(package private)  boolean holdsLock(Object object)
          Queries whether this Thread holds a monitor lock on the given object.
(package private)  void interrupt()
           
(package private) static boolean interrupted()
           
(package private)  boolean isInterrupted()
           
(package private)  void nameChanged(String newName)
          Tell the VM that the thread's name has changed.
(package private)  void resume()
          Resumes the Thread, assuming it is suspended.
(package private)  void setPriority(int newPriority)
           
(package private) static void sleep(long msec, int nsec)
           
(package private)  void start(long stacksize)
          Starts the VMThread (and thus the Java Thread) with the given stacksize.
(package private)  void stop(Throwable throwable)
          Stops the Thread, passing it a Throwable (which might be ThreadDeath).
(package private)  void suspend()
          Suspends the Thread.
(package private) static void yield()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

thread

Thread thread

vmData

int vmData

STATE_MAP

static final Thread.State[] STATE_MAP
Holds a mapping from native Thread statii to Java one. Required for translating back the result of getStatus().

Constructor Detail

VMThread

VMThread(Thread t)
Method Detail

create

static void create(Thread t,
                   long stacksize)

currentThread

static Thread currentThread()

interrupted

static boolean interrupted()

sleep

static void sleep(long msec,
                  int nsec)
           throws InterruptedException
Throws:
InterruptedException

yield

static void yield()

interrupt

void interrupt()

isInterrupted

boolean isInterrupted()

start

void start(long stacksize)
Starts the VMThread (and thus the Java Thread) with the given stacksize.

Parameters:
stacksize - The desired stacksize.

suspend

void suspend()
Suspends the Thread.


resume

void resume()
Resumes the Thread, assuming it is suspended.


holdsLock

boolean holdsLock(Object object)
Queries whether this Thread holds a monitor lock on the given object.


stop

void stop(Throwable throwable)
Stops the Thread, passing it a Throwable (which might be ThreadDeath).


setPriority

void setPriority(int newPriority)

getStatus

int getStatus()

nameChanged

void nameChanged(String newName)
Tell the VM that the thread's name has changed. This is useful for DDMS, which would otherwise be oblivious to Thread.setName calls.


Build 1.0_r1(from source)

Please submit a feedback, bug or feature