Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/java/util/concurrent/locks/
DCondition.java330 long awaitNanos(long nanosTimeout) throws InterruptedException; in awaitNanos() method
DAbstractQueuedLongSynchronizer.java1814 public final long awaitNanos(long nanosTimeout) in awaitNanos() method in AbstractQueuedLongSynchronizer.ConditionObject
DAbstractQueuedSynchronizer.java2038 public final long awaitNanos(long nanosTimeout) in awaitNanos() method in AbstractQueuedSynchronizer.ConditionObject
/libcore/luni/src/main/java/java/util/concurrent/
DDelayQueue.java195 available.awaitNanos(delay); in take()
231 nanos = available.awaitNanos(nanos); in poll()
240 nanos = available.awaitNanos(nanos); in poll()
245 long timeLeft = available.awaitNanos(delay); in poll()
DCyclicBarrier.java204 nanos = trip.awaitNanos(nanos); in dowait()
DLinkedBlockingDeque.java385 nanos = notFull.awaitNanos(nanos); in offerFirst()
408 nanos = notFull.awaitNanos(nanos); in offerLast()
490 nanos = notEmpty.awaitNanos(nanos); in pollFirst()
508 nanos = notEmpty.awaitNanos(nanos); in pollLast()
DScheduledThreadPoolExecutor.java1090 available.awaitNanos(delay); in take()
1117 nanos = available.awaitNanos(nanos); in poll()
1126 nanos = available.awaitNanos(nanos); in poll()
1131 long timeLeft = available.awaitNanos(delay); in poll()
DLinkedBlockingQueue.java353 nanos = notFull.awaitNanos(nanos); in offer()
435 nanos = notEmpty.awaitNanos(nanos); in poll()
DArrayBlockingQueue.java333 nanos = notFull.awaitNanos(nanos); in offer()
372 nanos = notEmpty.awaitNanos(nanos); in poll()
DPriorityBlockingQueue.java524 nanos = notEmpty.awaitNanos(nanos); in poll()
DThreadPoolExecutor.java1434 nanos = termination.awaitNanos(nanos); in awaitTermination()
/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()
253 case awaitNanos: in assertAwaitTimesOut()
255 long nanosRemaining = c.awaitNanos(nanosTimeout); in assertAwaitTimesOut()
658 public void testAwaitNanos_Timeout() { testAwait_Timeout(AwaitMethod.awaitNanos); }
673 public void testSignal_awaitNanos() { testSignal(AwaitMethod.awaitNanos); }
1002 public void testInterruptible_awaitNanos() { testInterruptible(AwaitMethod.awaitNanos); }
1025 public void testSignalAll_awaitNanos() { testSignalAll(AwaitMethod.awaitNanos); }
1236 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()
250 case awaitNanos: in assertAwaitTimesOut()
252 long nanosRemaining = c.awaitNanos(nanosTimeout); in assertAwaitTimesOut()
655 public void testAwaitNanos_Timeout() { testAwait_Timeout(AwaitMethod.awaitNanos); }
670 public void testSignal_awaitNanos() { testSignal(AwaitMethod.awaitNanos); }
999 public void testInterruptible_awaitNanos() { testInterruptible(AwaitMethod.awaitNanos); }
1022 public void testSignalAll_awaitNanos() { testSignalAll(AwaitMethod.awaitNanos); }
1233 assertTrue(c.awaitNanos(0L) <= 0);
[all …]
DReentrantLockTest.java150 enum AwaitMethod { await, awaitTimed, awaitNanos, awaitUntil } enumConstant
165 case awaitNanos: in await()
167 long nanosRemaining = c.awaitNanos(nanosTimeout); in await()
536 long nanosRemaining = c.awaitNanos(timeoutNanos);
938 …blic void testInterruptible_awaitNanos() { testInterruptible(false, AwaitMethod.awaitNanos); } in testInterruptible_awaitNanos()
939 …blic void testInterruptible_awaitNanos_fair() { testInterruptible(true, AwaitMethod.awaitNanos); } in testInterruptible_awaitNanos_fair()
977 public void testSignalAll_awaitNanos() { testSignalAll(false, AwaitMethod.awaitNanos); } in testSignalAll_awaitNanos()
978 public void testSignalAll_awaitNanos_fair() { testSignalAll(true, AwaitMethod.awaitNanos); } in testSignalAll_awaitNanos_fair()
DReentrantReadWriteLockTest.java160 enum AwaitMethod { await, awaitTimed, awaitNanos, awaitUntil } enumConstant
174 case awaitNanos: in await()
175 long nanosRemaining = c.awaitNanos(MILLISECONDS.toNanos(2 * LONG_DELAY_MS)); in await()
938 long nanosRemaining = c.awaitNanos(timeoutNanos);
1066 …blic void testInterruptible_awaitNanos() { testInterruptible(false, AwaitMethod.awaitNanos); } in testInterruptible_awaitNanos()
1067 …blic void testInterruptible_awaitNanos_fair() { testInterruptible(true, AwaitMethod.awaitNanos); } in testInterruptible_awaitNanos_fair()
1105 public void testSignalAll_awaitNanos() { testSignalAll(false, AwaitMethod.awaitNanos); } in testSignalAll_awaitNanos()
1106 public void testSignalAll_awaitNanos_fair() { testSignalAll(true, AwaitMethod.awaitNanos); } in testSignalAll_awaitNanos_fair()
DThreadPoolExecutorSubclassTest.java134 nanos = cond.awaitNanos(nanos); in get()