Home
last modified time | relevance | path

Searched refs:awaitNanos (Results 1 – 16 of 16) sorted by relevance

/libcore/ojluni/src/main/java/java/util/concurrent/
DDelayQueue.java228 available.awaitNanos(delay); in take()
264 nanos = available.awaitNanos(nanos); in poll()
273 nanos = available.awaitNanos(nanos); in poll()
278 long timeLeft = available.awaitNanos(delay); in poll()
DCyclicBarrier.java237 nanos = trip.awaitNanos(nanos); in dowait()
DScheduledThreadPoolExecutor.java1132 available.awaitNanos(delay); in take()
1159 nanos = available.awaitNanos(nanos); in poll()
1168 nanos = available.awaitNanos(nanos); in poll()
1173 long timeLeft = available.awaitNanos(delay); in poll()
DLinkedBlockingDeque.java417 nanos = notFull.awaitNanos(nanos); in offerFirst()
440 nanos = notFull.awaitNanos(nanos); in offerLast()
522 nanos = notEmpty.awaitNanos(nanos); in pollFirst()
540 nanos = notEmpty.awaitNanos(nanos); in pollLast()
DLinkedBlockingQueue.java385 nanos = notFull.awaitNanos(nanos); in offer()
467 nanos = notEmpty.awaitNanos(nanos); in poll()
DArrayBlockingQueue.java363 nanos = notFull.awaitNanos(nanos); in offer()
402 nanos = notEmpty.awaitNanos(nanos); in poll()
DPriorityBlockingQueue.java562 nanos = notEmpty.awaitNanos(nanos); in poll()
DThreadPoolExecutor.java1486 nanos = termination.awaitNanos(nanos); in awaitTermination()
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DCondition.java359 long awaitNanos(long nanosTimeout) throws InterruptedException; in awaitNanos() method
DAbstractQueuedLongSynchronizer.java1620 public final long awaitNanos(long nanosTimeout) in awaitNanos() method in AbstractQueuedLongSynchronizer.ConditionObject
DAbstractQueuedSynchronizer.java2092 public final long awaitNanos(long nanosTimeout) in awaitNanos() method in AbstractQueuedSynchronizer.ConditionObject
/libcore/jsr166-tests/src/test/java/jsr166/
DAbstractQueuedSynchronizerTest.java213 enum AwaitMethod { await, awaitTimed, awaitNanos, awaitUntil } enumConstant
228 case awaitNanos: in await()
230 long nanosRemaining = c.awaitNanos(nanosTimeout); in await()
255 case awaitNanos: in assertAwaitTimesOut()
258 long nanosRemaining = c.awaitNanos(nanosTimeout); in assertAwaitTimesOut()
666 public void testAwaitNanos_Timeout() { testAwait_Timeout(AwaitMethod.awaitNanos); }
681 public void testSignal_awaitNanos() { testSignal(AwaitMethod.awaitNanos); }
1010 public void testInterruptible_awaitNanos() { testInterruptible(AwaitMethod.awaitNanos); }
1033 public void testSignalAll_awaitNanos() { testSignalAll(AwaitMethod.awaitNanos); }
1244 assertTrue(c.awaitNanos(0L) <= 0);
[all …]
DAbstractQueuedLongSynchronizerTest.java210 enum AwaitMethod { await, awaitTimed, awaitNanos, awaitUntil } enumConstant
225 case awaitNanos: in await()
227 long nanosRemaining = c.awaitNanos(nanosTimeout); in await()
252 case awaitNanos: in assertAwaitTimesOut()
255 long nanosRemaining = c.awaitNanos(nanosTimeout); in assertAwaitTimesOut()
663 public void testAwaitNanos_Timeout() { testAwait_Timeout(AwaitMethod.awaitNanos); }
678 public void testSignal_awaitNanos() { testSignal(AwaitMethod.awaitNanos); }
1007 public void testInterruptible_awaitNanos() { testInterruptible(AwaitMethod.awaitNanos); }
1030 public void testSignalAll_awaitNanos() { testSignalAll(AwaitMethod.awaitNanos); }
1241 assertTrue(c.awaitNanos(0L) <= 0);
[all …]
DReentrantLockTest.java151 enum AwaitMethod { await, awaitTimed, awaitNanos, awaitUntil } enumConstant
166 case awaitNanos: in await()
168 long nanosRemaining = c.awaitNanos(timeoutNanos); in await()
538 long nanosRemaining = c.awaitNanos(timeoutNanos);
940 …blic void testInterruptible_awaitNanos() { testInterruptible(false, AwaitMethod.awaitNanos); } in testInterruptible_awaitNanos()
941 …blic void testInterruptible_awaitNanos_fair() { testInterruptible(true, AwaitMethod.awaitNanos); } in testInterruptible_awaitNanos_fair()
979 public void testSignalAll_awaitNanos() { testSignalAll(false, AwaitMethod.awaitNanos); } in testSignalAll_awaitNanos()
980 public void testSignalAll_awaitNanos_fair() { testSignalAll(true, AwaitMethod.awaitNanos); } in testSignalAll_awaitNanos_fair()
DReentrantReadWriteLockTest.java160 enum AwaitMethod { await, awaitTimed, awaitNanos, awaitUntil } enumConstant
175 case awaitNanos: in await()
177 long nanosRemaining = c.awaitNanos(timeoutNanos); in await()
940 long nanosRemaining = c.awaitNanos(timeoutNanos);
1068 …blic void testInterruptible_awaitNanos() { testInterruptible(false, AwaitMethod.awaitNanos); } in testInterruptible_awaitNanos()
1069 …blic void testInterruptible_awaitNanos_fair() { testInterruptible(true, AwaitMethod.awaitNanos); } in testInterruptible_awaitNanos_fair()
1107 public void testSignalAll_awaitNanos() { testSignalAll(false, AwaitMethod.awaitNanos); } in testSignalAll_awaitNanos()
1108 public void testSignalAll_awaitNanos_fair() { testSignalAll(true, AwaitMethod.awaitNanos); } in testSignalAll_awaitNanos_fair()
DThreadPoolExecutorSubclassTest.java140 nanos = cond.awaitNanos(nanos); in get()