Searched defs:await (Results 1 - 10 of 10) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/locks/
H A DCondition.java88 * <b>notFull.await();</b>
102 * <b>notEmpty.await();</b>
134 * {@linkplain #await waiting} and {@linkplain #signal signalling} methods.
232 void await() throws InterruptedException; method in interface:Condition
374 boolean await(long time, TimeUnit unit) throws InterruptedException; method in interface:Condition
458 * lock before returning from {@code await}.
476 * return from {@code await}.
H A DAbstractQueuedLongSynchronizer.java1588 public final void await() throws InterruptedException { method in class:AbstractQueuedLongSynchronizer.ConditionObject
1707 public final boolean await(long time, TimeUnit unit) method in class:AbstractQueuedLongSynchronizer.ConditionObject
1713 // await(0, unit) as a way to "yield the lock".
H A DAbstractQueuedSynchronizer.java281 * public void await() throws InterruptedException {
370 * only accessed when exclusively held. Upon await, a node is
2052 public final void await() throws InterruptedException { method in class:AbstractQueuedSynchronizer.ConditionObject
2171 public final boolean await(long time, TimeUnit unit) method in class:AbstractQueuedSynchronizer.ConditionObject
2177 // await(0, unit) as a way to "yield the lock".
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DCountDownLatch.java45 * The {@link #await await} methods block until the current count reaches
48 * {@link #await await} return immediately. This is a one-shot phenomenon
55 * simple on/off latch, or gate: all threads invoking {@link #await await}
64 * thread from proceeding past an {@link #await await} until all
88 * doneSignal.await(); // wait for all to finish
101 * startSignal.await();
231 public void await() throws InterruptedException { method in class:CountDownLatch
276 public boolean await(long timeout, TimeUnit unit) method in class:CountDownLatch
[all...]
H A DCyclicBarrier.java72 * barrier.await();
112 * {@link #await} returns the arrival index of that thread at the barrier.
116 * if (barrier.await() == 0) {
129 * {@code await()}
133 * corresponding {@code await()} in other threads.
235 trip.await();
272 * @param parties the number of threads that must invoke {@link #await}
290 * @param parties the number of threads that must invoke {@link #await}
309 * {@code await} on this barrier.
334 * {@code await} i
361 public int await() throws InterruptedException, BrokenBarrierException { method in class:CyclicBarrier
432 public int await(long timeout, TimeUnit unit) method in class:CyclicBarrier
[all...]
/libcore/jsr166-tests/src/test/java/jsr166/
H A DAbstractQueuedLongSynchronizerTest.java210 enum AwaitMethod { await, awaitTimed, awaitNanos, awaitUntil } enum constant in enum:AbstractQueuedLongSynchronizerTest.AwaitMethod
215 void await(ConditionObject c, AwaitMethod awaitMethod) method in class:AbstractQueuedLongSynchronizerTest
219 case await:
220 c.await();
223 assertTrue(c.await(timeoutMillis, MILLISECONDS));
249 assertFalse(c.await(timeoutMillis, MILLISECONDS));
618 * Calling await without holding sync throws IllegalMonitorStateException
626 await(c, awaitMethod);
660 * await/awaitNanos/awaitUntil without a signal times out
674 * await/awaitNano
[all...]
H A DAbstractQueuedSynchronizerTest.java213 enum AwaitMethod { await, awaitTimed, awaitNanos, awaitUntil } enum constant in enum:AbstractQueuedSynchronizerTest.AwaitMethod
218 void await(ConditionObject c, AwaitMethod awaitMethod) method in class:AbstractQueuedSynchronizerTest
222 case await:
223 c.await();
226 assertTrue(c.await(timeoutMillis, MILLISECONDS));
252 assertFalse(c.await(timeoutMillis, MILLISECONDS));
621 * Calling await without holding sync throws IllegalMonitorStateException
629 await(c, awaitMethod);
663 * await/awaitNanos/awaitUntil without a signal times out
677 * await/awaitNano
[all...]
H A DReentrantLockTest.java151 enum AwaitMethod { await, awaitTimed, awaitNanos, awaitUntil } enum constant in enum:ReentrantLockTest.AwaitMethod
156 void await(Condition c, AwaitMethod awaitMethod) method in class:ReentrantLockTest
160 case await:
161 c.await();
164 assertTrue(c.await(timeoutMillis, MILLISECONDS));
459 barrier.await();
460 barrier.await();
464 barrier.await();
466 barrier.await();
493 * Calling await withou
[all...]
H A DJSR166TestCase.java1475 latch.await();
1497 await(latch);
1506 public void await(CountDownLatch latch, long timeoutMillis) { method in class:JSR166TestCase
1508 if (!latch.await(timeoutMillis, MILLISECONDS))
1516 public void await(CountDownLatch latch) { method in class:JSR166TestCase
1517 await(latch, LONG_DELAY_MS);
1520 public void await(Semaphore semaphore) { method in class:JSR166TestCase
1533 // public void await(AtomicBoolean flag) {
1534 // await(flag, LONG_DELAY_MS);
1540 // public void await(AtomicBoolea
1757 public int await() { method in class:JSR166TestCase.CheckedBarrier
[all...]
H A DReentrantReadWriteLockTest.java160 enum AwaitMethod { await, awaitTimed, awaitNanos, awaitUntil } enum constant in enum:ReentrantReadWriteLockTest.AwaitMethod
165 void await(Condition c, AwaitMethod awaitMethod) method in class:ReentrantReadWriteLockTest
169 case await:
170 c.await();
173 assertTrue(c.await(timeoutMillis, MILLISECONDS));
878 * Calling await without holding lock throws IllegalMonitorStateException
888 await(c, awaitMethod);
948 * timed await without a signal times out
960 assertFalse(c.await(timeoutMillis, MILLISECONDS));
987 * await return
[all...]

Completed in 54 milliseconds