Lines Matching refs:thread

10  * Basic thread blocking primitives for creating locks and other
13 * <p>This class associates, with each thread that uses it, a permit
29 * between one thread invoking {@code park} and another thread trying
32 * thread was interrupted, and timeout versions are supported. The
42 * the thread is blocked to permit monitoring and diagnostic tools to
61 * where no actions by the thread publishing a request to unpark,
63 * Because only one permit is associated with each thread, any
65 * loading, could lead to an unresponsive thread (a "lost unpark").
77 * // publish current thread for unparkers
115 * Makes available the permit for the given thread, if it
116 * was not already available. If the thread was blocked on
120 * thread has not been started.
122 * @param thread the thread to unpark, or {@code null}, in which case
125 public static void unpark(Thread thread) {
126 if (thread != null)
127 U.unpark(thread);
131 * Disables the current thread for thread scheduling purposes unless the
136 * the current thread becomes disabled for thread scheduling
140 * <li>Some other thread invokes {@link #unpark unpark} with the
141 * current thread as the target; or
143 * <li>Some other thread {@linkplain Thread#interrupt interrupts}
144 * the current thread; or
151 * the thread to park in the first place. Callers may also determine,
152 * for example, the interrupt status of the thread upon return.
155 * thread parking
166 * Disables the current thread for thread scheduling purposes, for up to
170 * returns immediately; otherwise the current thread becomes disabled
171 * for thread scheduling purposes and lies dormant until one of four
175 * <li>Some other thread invokes {@link #unpark unpark} with the
176 * current thread as the target; or
178 * <li>Some other thread {@linkplain Thread#interrupt interrupts}
179 * the current thread; or
188 * the thread to park in the first place. Callers may also determine,
189 * for example, the interrupt status of the thread, or the elapsed time
193 * thread parking
207 * Disables the current thread for thread scheduling purposes, until
211 * returns immediately; otherwise the current thread becomes disabled
212 * for thread scheduling purposes and lies dormant until one of four
216 * <li>Some other thread invokes {@link #unpark unpark} with the
217 * current thread as the target; or
219 * <li>Some other thread {@linkplain Thread#interrupt interrupts} the
220 * current thread; or
229 * the thread to park in the first place. Callers may also determine,
230 * for example, the interrupt status of the thread, or the current time
234 * thread parking
250 * snapshot -- the thread may have since unblocked or blocked on a
253 * @param t the thread
265 * Disables the current thread for thread scheduling purposes unless the
269 * returns immediately; otherwise the current thread becomes disabled
270 * for thread scheduling purposes and lies dormant until one of three
275 * <li>Some other thread invokes {@link #unpark unpark} with the
276 * current thread as the target; or
278 * <li>Some other thread {@linkplain Thread#interrupt interrupts}
279 * the current thread; or
286 * the thread to park in the first place. Callers may also determine,
287 * for example, the interrupt status of the thread upon return.
294 * Disables the current thread for thread scheduling purposes, for up to
298 * returns immediately; otherwise the current thread becomes disabled
299 * for thread scheduling purposes and lies dormant until one of four
303 * <li>Some other thread invokes {@link #unpark unpark} with the
304 * current thread as the target; or
306 * <li>Some other thread {@linkplain Thread#interrupt interrupts}
307 * the current thread; or
316 * the thread to park in the first place. Callers may also determine,
317 * for example, the interrupt status of the thread, or the elapsed time
328 * Disables the current thread for thread scheduling purposes, until
332 * returns immediately; otherwise the current thread becomes disabled
333 * for thread scheduling purposes and lies dormant until one of four
337 * <li>Some other thread invokes {@link #unpark unpark} with the
338 * current thread as the target; or
340 * <li>Some other thread {@linkplain Thread#interrupt interrupts}
341 * the current thread; or
350 * the thread to park in the first place. Callers may also determine,
351 * for example, the interrupt status of the thread, or the current time