Searched refs:unpark (Results 1 - 15 of 15) sorted by relevance

/libcore/luni/src/main/java/java/util/concurrent/locks/
H A DLockSupport.java18 * it <em>may</em> block. A call to {@code unpark} makes the permit
22 * <p>Methods {@code park} and {@code unpark} provide efficient
27 * to {@code unpark} it will preserve liveness, due to the
34 * spinning, but must be paired with an {@code unpark} to be
87 * LockSupport.unpark(waiters.peek());
118 * @param thread the thread to unpark, or {@code null}, in which case
121 public static void unpark(Thread thread) { method in class:LockSupport
123 unsafe.unpark(thread);
136 * <li>Some other thread invokes {@link #unpark unpark} wit
[all...]
H A DAbstractQueuedLongSynchronizer.java151 * unpark its successor when it releases or
398 * Thread to unpark is held in successor, which is normally
411 LockSupport.unpark(s.thread);
1433 LockSupport.unpark(node.thread);
H A DAbstractQueuedSynchronizer.java381 * unpark its successor when it releases or
628 * Thread to unpark is held in successor, which is normally
641 LockSupport.unpark(s.thread);
1663 LockSupport.unpark(node.thread);
/libcore/libart/src/main/java/sun/misc/
H A DUnsafe.java283 * a previous call to {@link #unpark}. This method may also return
284 * spuriously (that is, without the thread being told to unpark
309 * @param obj non-null; the object to unpark
311 public void unpark(Object obj) { method in class:Unsafe
313 ((Thread) obj).unpark();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/apache/harmony/kernel/dalvik/
H A DThreadsTest.java65 /** Test the case where the unpark happens before the timeout. */
86 UNSAFE.unpark(parkerThread);
107 /** Test the case where the unpark happens before the timeout. */
128 UNSAFE.unpark(parkerThread);
282 UNSAFE.unpark(thread);
/libcore/jsr166-tests/src/test/java/jsr166/
H A DLockSupportTest.java78 * park is released by subsequent unpark
107 LockSupport.unpark(t);
112 * park is released by preceding unpark
144 LockSupport.unpark(t);
/libcore/luni/src/main/java/java/util/concurrent/
H A DExchanger.java133 * some park/unpark mechanics compared to LockSupport versions.
345 U.unpark(w);
440 U.unpark(w);
H A DPhaser.java953 LockSupport.unpark(t);
977 LockSupport.unpark(t);
1047 node.thread = null; // avoid need for unpark()
H A DFutureTask.java343 LockSupport.unpark(t);
H A DLinkedTransferQueue.java500 LockSupport.unpark(waiter);
600 LockSupport.unpark(p.waiter);
697 s.waiter = w; // request unpark then recheck
H A DSynchronousQueue.java105 * Blocking is mainly accomplished using LockSupport park/unpark,
204 volatile Thread waiter; // to control park/unpark
232 if (w != null) { // waiters need at most one unpark
234 LockSupport.unpark(w);
509 volatile Thread waiter; // to control park/unpark
692 LockSupport.unpark(m.waiter);
H A DForkJoinPool.java299 * We park/unpark workers after placing in an event wait queue
313 * field of WorkQueues to reduce unnecessary calls to unpark.
332 * platforms, signalling (unpark) overhead time is noticeably
1422 U.unpark(p);
1621 U.unpark(p);
1783 U.unpark(p);
1942 U.unpark(p);
2257 U.unpark(wt);
2275 U.unpark(p);
H A DConcurrentHashMap.java2044 LockSupport.unpark(w);
/libcore/luni/src/test/java/libcore/java/lang/
H A DOldThreadTest.java119 LockSupport.unpark(parker);
/libcore/libart/src/main/java/java/lang/
H A DThread.java1161 public void unpark() { method in class:Thread
1169 * to unpark.
1193 * unpark and without the indicated amount of time elapsing).
1244 * method attempts to unpark the current thread immediately after
1249 * spuriously (that is, without the thread being told to unpark

Completed in 216 milliseconds