Method Summary |
|
static Thread | currentThread() |
native public static Thread | currentThreadNative() This method satisfies the requirements of the specification for the
Thread.currentThread Thread.currentThread() method.
But there is one special case. |
native static int | getState(java.lang.Thread thread) |
native static boolean | holdsLock(Object object) This method satisfies the requirements of the specification for the
Thread.holdsLock(java.lang.Object) Thread.holdsLock(Object obj) method. |
native static long | init(Thread thread, ThreadWeakRef ref, long oldAddr) This method initialize native thread structure as well as inter dependencies
between java thread and native thread. |
native static int | interrupt(Thread thread) This method satisfies the requirements of the specification for the
Thread.interrupt Thread.interrupt() method. |
native static boolean | isAlive(Thread thread) Checks if the specified thread is dead.
Note: This method is used for the
Thread.isAliveThread.isAlive() method implementation.
Parameters: thread - the thread to check the status for. |
native static boolean | isInterrupted() This method satisfies the requirements of the specification for the
Thread.interrupted Thread.interrupted() method. |
native static boolean | isInterrupted(Thread thread) This method satisfies the requirements of the specification for the
Thread.isInterrupted Thread.isInterrupted() method. |
native static int | notify(Object object) This method satisfies the requirements of the specification for the
Object.notify Object.notify() method. |
native static int | notifyAll(Object object) This method satisfies the requirements of the specification for the
Object.notifyAll Object.notifyAll() method. |
native static int | resume(Thread thread) This method satisfies the requirements of the specification for the
Thread.resume Thread.resume() method. |
native static int | setPriority(Thread thread, int priority) Changes the priority of the specified thread. |
native static int | sleep(long millis, int nanos) This method satisfies the requirements of the specification for the
Thread.sleep(longint) Thread.sleep(long timeout, int nanos) method. |
native static int | start(Thread thread, long stackSize, boolean daemon, int priority) Starts the specified thread. |
native static int | stop(Thread thread, Throwable throwable) This method satisfies the requirements of the specification for the
Thread.stop(java.lang.Throwable) Thread.stop(Throwable obj) method. |
native static int | suspend(Thread thread) This method satisfies the requirements of the specification for the
Thread.suspend Thread.suspend() method. |
native static int | wait(Object object, long millis, int nanos) This method satisfies the requirements of the specification for the
Object.wait(longint) Object.wait(long timeout, int nanos) method. |
native static int | yield() This method satisfies the requirements of the specification for the
Thread.yield Thread.yield() method. |