Home
last modified time | relevance | path

Searched refs:nanosTimeout (Results 1 – 6 of 6) sorted by relevance

/libcore/luni/src/main/java/java/util/concurrent/locks/
DAbstractQueuedSynchronizer.java890 private boolean doAcquireNanos(int arg, long nanosTimeout) in doAcquireNanos() argument
892 if (nanosTimeout <= 0L) in doAcquireNanos()
894 final long deadline = System.nanoTime() + nanosTimeout; in doAcquireNanos()
906 nanosTimeout = deadline - System.nanoTime(); in doAcquireNanos()
907 if (nanosTimeout <= 0L) in doAcquireNanos()
910 nanosTimeout > spinForTimeoutThreshold) in doAcquireNanos()
911 LockSupport.parkNanos(this, nanosTimeout); in doAcquireNanos()
990 private boolean doAcquireSharedNanos(int arg, long nanosTimeout) in doAcquireSharedNanos() argument
992 if (nanosTimeout <= 0L) in doAcquireSharedNanos()
994 final long deadline = System.nanoTime() + nanosTimeout; in doAcquireSharedNanos()
[all …]
DAbstractQueuedLongSynchronizer.java660 private boolean doAcquireNanos(long arg, long nanosTimeout) in doAcquireNanos() argument
662 if (nanosTimeout <= 0L) in doAcquireNanos()
664 final long deadline = System.nanoTime() + nanosTimeout; in doAcquireNanos()
676 nanosTimeout = deadline - System.nanoTime(); in doAcquireNanos()
677 if (nanosTimeout <= 0L) in doAcquireNanos()
680 nanosTimeout > spinForTimeoutThreshold) in doAcquireNanos()
681 LockSupport.parkNanos(this, nanosTimeout); in doAcquireNanos()
760 private boolean doAcquireSharedNanos(long arg, long nanosTimeout) in doAcquireSharedNanos() argument
762 if (nanosTimeout <= 0L) in doAcquireSharedNanos()
764 final long deadline = System.nanoTime() + nanosTimeout; in doAcquireSharedNanos()
[all …]
DCondition.java329 long awaitNanos(long nanosTimeout) throws InterruptedException; in awaitNanos() argument
/libcore/jsr166-tests/src/test/java/jsr166/
DAbstractQueuedLongSynchronizerTest.java210 long nanosTimeout = MILLISECONDS.toNanos(timeoutMillis); in await() local
211 long nanosRemaining = c.awaitNanos(nanosTimeout); in await()
233 long nanosTimeout = MILLISECONDS.toNanos(timeoutMillis); in assertAwaitTimesOut() local
234 long nanosRemaining = c.awaitNanos(nanosTimeout); in assertAwaitTimesOut()
DAbstractQueuedSynchronizerTest.java213 long nanosTimeout = MILLISECONDS.toNanos(timeoutMillis); in await() local
214 long nanosRemaining = c.awaitNanos(nanosTimeout); in await()
236 long nanosTimeout = MILLISECONDS.toNanos(timeoutMillis); in assertAwaitTimesOut() local
237 long nanosRemaining = c.awaitNanos(nanosTimeout); in assertAwaitTimesOut()
DReentrantLockTest.java152 long nanosTimeout = MILLISECONDS.toNanos(timeoutMillis); in await() local
153 long nanosRemaining = c.awaitNanos(nanosTimeout); in await()