Lines Matching defs:thread

42  * Basic thread blocking primitives for creating locks and other
45 * <p>This class associates, with each thread that uses it, a permit
57 * between one thread invoking {@code park} and another thread trying
60 * thread was interrupted, and timeout versions are supported. The
70 * the thread is blocked to permit monitoring and diagnostic tools to
84 * permit is associated with each thread, any intermediary uses of
140 * Makes available the permit for the given thread, if it
141 * was not already available. If the thread was blocked on
145 * thread has not been started.
147 * @param thread the thread to unpark, or {@code null}, in which case
150 public static void unpark(Thread thread) {
151 if (thread != null)
152 unsafe.unpark(thread);
156 * Disables the current thread for thread scheduling purposes unless the
161 * the current thread becomes disabled for thread scheduling
165 * <li>Some other thread invokes {@link #unpark unpark} with the
166 * current thread as the target; or
168 * <li>Some other thread {@linkplain Thread#interrupt interrupts}
169 * the current thread; or
176 * the thread to park in the first place. Callers may also determine,
177 * for example, the interrupt status of the thread upon return.
180 * thread parking
191 * Disables the current thread for thread scheduling purposes, for up to
195 * returns immediately; otherwise the current thread becomes disabled
196 * for thread scheduling purposes and lies dormant until one of four
200 * <li>Some other thread invokes {@link #unpark unpark} with the
201 * current thread as the target; or
203 * <li>Some other thread {@linkplain Thread#interrupt interrupts}
204 * the current thread; or
213 * the thread to park in the first place. Callers may also determine,
214 * for example, the interrupt status of the thread, or the elapsed time
218 * thread parking
232 * Disables the current thread for thread scheduling purposes, until
236 * returns immediately; otherwise the current thread becomes disabled
237 * for thread scheduling purposes and lies dormant until one of four
241 * <li>Some other thread invokes {@link #unpark unpark} with the
242 * current thread as the target; or
244 * <li>Some other thread {@linkplain Thread#interrupt interrupts} the
245 * current thread; or
254 * the thread to park in the first place. Callers may also determine,
255 * for example, the interrupt status of the thread, or the current time
259 * thread parking
275 * snapshot -- the thread may have since unblocked or blocked on a
278 * @param t the thread
290 * Disables the current thread for thread scheduling purposes unless the
294 * returns immediately; otherwise the current thread becomes disabled
295 * for thread scheduling purposes and lies dormant until one of three
300 * <li>Some other thread invokes {@link #unpark unpark} with the
301 * current thread as the target; or
303 * <li>Some other thread {@linkplain Thread#interrupt interrupts}
304 * the current thread; or
311 * the thread to park in the first place. Callers may also determine,
312 * for example, the interrupt status of the thread upon return.
319 * Disables the current thread for thread scheduling purposes, for up to
323 * returns immediately; otherwise the current thread becomes disabled
324 * for thread scheduling purposes and lies dormant until one of four
328 * <li>Some other thread invokes {@link #unpark unpark} with the
329 * current thread as the target; or
331 * <li>Some other thread {@linkplain Thread#interrupt interrupts}
332 * the current thread; or
341 * the thread to park in the first place. Callers may also determine,
342 * for example, the interrupt status of the thread, or the elapsed time
353 * Disables the current thread for thread scheduling purposes, until
357 * returns immediately; otherwise the current thread becomes disabled
358 * for thread scheduling purposes and lies dormant until one of four
362 * <li>Some other thread invokes {@link #unpark unpark} with the
363 * current thread as the target; or
365 * <li>Some other thread {@linkplain Thread#interrupt interrupts}
366 * the current thread; or
375 * the thread to park in the first place. Callers may also determine,
376 * for example, the interrupt status of the thread, or the current time