Methods Summary |
---|
static native void | create(java.lang.Thread t, long stacksize)
|
static native java.lang.Thread | currentThread()
|
native int | getStatus()
|
native boolean | holdsLock(java.lang.Object object)Queries whether this Thread holds a monitor lock on the
given object.
|
native void | interrupt()
|
static native boolean | interrupted()
|
native boolean | isInterrupted()
|
native void | nameChanged(java.lang.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.
|
void | resume()Resumes the Thread, assuming it is suspended.
Logger.global.log(Level.SEVERE, UNSUPPORTED_THREAD_METHOD,
new UnsupportedOperationException());
|
native void | setPriority(int newPriority)
|
static native void | sleep(long msec, int nsec)
|
void | start(long stacksize)Starts the VMThread (and thus the Java Thread) with the given
stacksize.
VMThread.create(thread, stacksize);
|
void | stop(java.lang.Throwable throwable)Stops the Thread, passing it a Throwable (which might be ThreadDeath).
Logger.global.log(Level.SEVERE, UNSUPPORTED_THREAD_METHOD,
new UnsupportedOperationException());
|
void | suspend()Suspends the Thread.
Logger.global.log(Level.SEVERE, UNSUPPORTED_THREAD_METHOD,
new UnsupportedOperationException());
|
static native void | yield()
|