Lines Matching refs:thread

11  * Basic thread blocking primitives for creating locks and other
14 * <p>This class associates, with each thread that uses it, a permit
26 * between one thread invoking {@code park} and another thread trying
29 * thread was interrupted, and timeout versions are supported. The
39 * the thread is blocked to permit monitoring and diagnostic tools to
56 * permit is associated with each thread, any intermediary uses of
111 * Makes available the permit for the given thread, if it
112 * was not already available. If the thread was blocked on
116 * thread has not been started.
118 * @param thread the thread to unpark, or {@code null}, in which case
121 public static void unpark(Thread thread) {
122 if (thread != null)
123 unsafe.unpark(thread);
127 * Disables the current thread for thread scheduling purposes unless the
132 * the current thread becomes disabled for thread scheduling
136 * <li>Some other thread invokes {@link #unpark unpark} with the
137 * current thread as the target; or
139 * <li>Some other thread {@linkplain Thread#interrupt interrupts}
140 * the current thread; or
147 * the thread to park in the first place. Callers may also determine,
148 * for example, the interrupt status of the thread upon return.
151 * thread parking
162 * Disables the current thread for thread scheduling purposes, for up to
166 * returns immediately; otherwise the current thread becomes disabled
167 * for thread scheduling purposes and lies dormant until one of four
171 * <li>Some other thread invokes {@link #unpark unpark} with the
172 * current thread as the target; or
174 * <li>Some other thread {@linkplain Thread#interrupt interrupts}
175 * the current thread; or
184 * the thread to park in the first place. Callers may also determine,
185 * for example, the interrupt status of the thread, or the elapsed time
189 * thread parking
203 * Disables the current thread for thread scheduling purposes, until
207 * returns immediately; otherwise the current thread becomes disabled
208 * for thread scheduling purposes and lies dormant until one of four
212 * <li>Some other thread invokes {@link #unpark unpark} with the
213 * current thread as the target; or
215 * <li>Some other thread {@linkplain Thread#interrupt interrupts} the
216 * current thread; or
225 * the thread to park in the first place. Callers may also determine,
226 * for example, the interrupt status of the thread, or the current time
230 * thread parking
246 * snapshot -- the thread may have since unblocked or blocked on a
249 * @param t the thread
261 * Disables the current thread for thread scheduling purposes unless the
265 * returns immediately; otherwise the current thread becomes disabled
266 * for thread scheduling purposes and lies dormant until one of three
271 * <li>Some other thread invokes {@link #unpark unpark} with the
272 * current thread as the target; or
274 * <li>Some other thread {@linkplain Thread#interrupt interrupts}
275 * the current thread; or
282 * the thread to park in the first place. Callers may also determine,
283 * for example, the interrupt status of the thread upon return.
290 * Disables the current thread for thread scheduling purposes, for up to
294 * returns immediately; otherwise the current thread becomes disabled
295 * for thread scheduling purposes and lies dormant until one of four
299 * <li>Some other thread invokes {@link #unpark unpark} with the
300 * current thread as the target; or
302 * <li>Some other thread {@linkplain Thread#interrupt interrupts}
303 * the current thread; or
312 * the thread to park in the first place. Callers may also determine,
313 * for example, the interrupt status of the thread, or the elapsed time
324 * Disables the current thread for thread scheduling purposes, until
328 * returns immediately; otherwise the current thread becomes disabled
329 * for thread scheduling purposes and lies dormant until one of four
333 * <li>Some other thread invokes {@link #unpark unpark} with the
334 * current thread as the target; or
336 * <li>Some other thread {@linkplain Thread#interrupt interrupts}
337 * the current thread; or
346 * the thread to park in the first place. Callers may also determine,
347 * for example, the interrupt status of the thread, or the current time