/libcore/luni/src/main/java/java/util/concurrent/locks/ |
H A D | LockSupport.java | 17 * Semaphore} class). A call to {@code park} will return immediately 23 * <p>Methods {@code park} and {@code unpark} provide efficient 27 * between one thread invoking {@code park} and another thread trying 29 * permit. Additionally, {@code park} will return if the caller's 31 * {@code park} method may also return at any other time, for "no 33 * conditions upon return. In this sense {@code park} serves as an 38 * <p>The three forms of {@code park} each also support a 49 * useful for most concurrency control applications. The {@code park} 53 * while (!canProceed()) { ... LockSupport.park(this); }}</pre> 56 * call to {@code park} entai 155 public static void park(Object blocker) { method in class:LockSupport 286 public static void park() { method in class:LockSupport [all...] |
H A D | AbstractQueuedLongSynchronizer.java | 151 * blocked (via park), so the current node must 323 * rather than to use timed park. A rough estimate suffices 548 * to signal it, so it can safely park. 563 * need a signal, but don't park yet. Caller will need to 579 * Convenience method to park and then check if interrupted 584 LockSupport.park(this); 1726 LockSupport.park(this); 1789 LockSupport.park(this); 2038 // LockSupport.park: https://bugs.openjdk.java.net/browse/JDK-8074773
|
H A D | AbstractQueuedSynchronizer.java | 377 * blocked (via park), so the current node must 549 * rather than to use timed park. A rough estimate suffices 774 * to signal it, so it can safely park. 789 * need a signal, but don't park yet. Caller will need to 805 * Convenience method to park and then check if interrupted 810 LockSupport.park(this); 1950 LockSupport.park(this); 2013 LockSupport.park(this); 2262 // LockSupport.park: https://bugs.openjdk.java.net/browse/JDK-8074773
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | LockSupportTest.java | 41 park() { method in enum:LockSupportTest.ParkMethod 42 void park() { 43 LockSupport.park(); 45 void park(long millis) { 50 void park(long millis) { 55 void park(long millis) { 60 void park() { 61 LockSupport.park(theBlocker()); 63 void park(long millis) { 68 void park(lon 79 void park() { park(2 * LONG_DELAY_MS); } method in class:LockSupportTest.ParkMethod 80 abstract void park(long millis); method in class:LockSupportTest.ParkMethod [all...] |
/libcore/libart/src/main/java/sun/misc/ |
H A D | Unsafe.java | 295 public void park(boolean absolute, long time) { method in class:Unsafe
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/apache/harmony/kernel/dalvik/ |
H A D | ThreadsTest.java | 27 * Tests for the <code>park()</code> functionality of {@link Unsafe}. 50 /** Test the case where the park times out. */ 92 /** Test the case where the park times out. */ 165 * either case, this constructor takes a duration to park for 188 UNSAFE.park(true, start + amount); 190 UNSAFE.park(false, amount);
|
/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | Exchanger.java | 130 * some park/unpark mechanics compared to LockSupport versions. 374 U.park(false, ns); 475 U.park(false, ns);
|
H A D | FutureTask.java | 369 // - call nanoTime exactly once for each call to park 374 // to park-spin for a while 421 LockSupport.park(this); 475 // LockSupport.park: https://bugs.openjdk.java.net/browse/JDK-8074773
|
H A D | SynchronousQueue.java | 106 * Blocking is mainly accomplished using LockSupport park/unpark, 176 * rather than to use timed park. A rough estimate suffices. 205 volatile Thread waiter; // to control park/unpark 392 * to be at the head of the stack, calls to park are 426 s.waiter = w; // establish waiter so can park next iter 428 LockSupport.park(this); 510 volatile Thread waiter; // to control park/unpark 732 LockSupport.park(this); 1178 // LockSupport.park: https://bugs.openjdk.java.net/browse/JDK-8074773
|
H A D | Phaser.java | 1109 LockSupport.park(this); 1131 // LockSupport.park: https://bugs.openjdk.java.net/browse/JDK-8074773
|
H A D | LinkedTransferQueue.java | 457 * follows either CAS or return from park (if ever parked; 704 LockSupport.park(this); 1317 // LockSupport.park: https://bugs.openjdk.java.net/browse/JDK-8074773
|
H A D | ForkJoinPool.java | 291 * We park/unpark workers after placing in an event wait queue 311 * Thread.interrupted) before any call to park, so that park does 635 volatile Thread parker; // == owner during call to park; else null 1098 * triggering quiescence to park waiting for new work. On timeout, 1741 w.parker = wt; // emulate LockSupport.park 1743 U.park(false, parkTime); // must recheck before park
|
H A D | ConcurrentHashMap.java | 2083 LockSupport.park(this); 3329 // LockSupport.park: https://bugs.openjdk.java.net/browse/JDK-8074773
|
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | OldThreadTest.java | 109 LockSupport.park();
|