Home | History | Annotate | Download | only in native

Lines Matching refs:Thread

25  * static void create(Thread t, long stacksize)
27 * This is eventually called as a result of Thread.start().
42 * static Thread currentThread()
55 * Gets the Thread status. Result is in VM terms, has to be mapped to
56 * Thread.State by interpreted code.
61 Thread* thread;
65 thread = dvmGetThreadFromThreadObject(thisPtr);
66 if (thread != NULL)
67 result = thread->status;
78 * Returns whether the current thread has a monitor lock on the specific
85 Thread* thread;
93 thread = dvmGetThreadFromThreadObject(thisPtr);
94 int result = dvmHoldsLock(thread, object);
103 * Interrupt a thread that is waiting (or is about to wait) on a monitor.
108 Thread* thread;
111 thread = dvmGetThreadFromThreadObject(thisPtr);
112 if (thread != NULL)
113 dvmThreadInterrupt(thread);
121 * Determine if the current thread has been interrupted. Clears the flag.
126 Thread* self = dvmThreadSelf();
139 * Determine if the specified thread has been interrupted. Does not clear
146 Thread* thread;
150 thread = dvmGetThreadFromThreadObject(thisPtr);
151 if (thread != NULL)
152 interrupted = thread->interrupted;
163 * The name of the target thread has changed. We may need to alert DDMS.
170 Thread* thread;
173 /* get the thread's ID */
175 thread = dvmGetThreadFromThreadObject(thisPtr);
176 if (thread != NULL)
177 threadId = thread->threadId;
191 * Alter the priority of the specified thread. "newPriority" will range
192 * from Thread.MIN_PRIORITY to Thread.MAX_PRIORITY (1-10), with "normal"
193 * threads at Thread.NORM_PRIORITY (5).
200 Thread* thread;
203 thread = dvmGetThreadFromThreadObject(thisPtr);
204 if (thread != NULL)
205 dvmChangeThreadPriority(thread, newPriority);
224 * Causes the thread to temporarily pause and allow other threads to execute.
239 { "create", "(Ljava/lang/Thread;J)V",
241 { "currentThread", "()Ljava/lang/Thread;",