Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DAbstractQueuedLongSynchronizer.java475 private boolean doAcquireNanos(long arg, long nanosTimeout) in doAcquireNanos() argument
477 if (nanosTimeout <= 0L) in doAcquireNanos()
479 final long deadline = System.nanoTime() + nanosTimeout; in doAcquireNanos()
489 nanosTimeout = deadline - System.nanoTime(); in doAcquireNanos()
490 if (nanosTimeout <= 0L) { in doAcquireNanos()
495 nanosTimeout > SPIN_FOR_TIMEOUT_THRESHOLD) in doAcquireNanos()
496 LockSupport.parkNanos(this, nanosTimeout); in doAcquireNanos()
571 private boolean doAcquireSharedNanos(long arg, long nanosTimeout) in doAcquireSharedNanos() argument
573 if (nanosTimeout <= 0L) in doAcquireSharedNanos()
575 final long deadline = System.nanoTime() + nanosTimeout; in doAcquireSharedNanos()
[all …]
DAbstractQueuedSynchronizer.java941 private boolean doAcquireNanos(int arg, long nanosTimeout) in doAcquireNanos() argument
943 if (nanosTimeout <= 0L) in doAcquireNanos()
945 final long deadline = System.nanoTime() + nanosTimeout; in doAcquireNanos()
955 nanosTimeout = deadline - System.nanoTime(); in doAcquireNanos()
956 if (nanosTimeout <= 0L) { in doAcquireNanos()
961 nanosTimeout > SPIN_FOR_TIMEOUT_THRESHOLD) in doAcquireNanos()
962 LockSupport.parkNanos(this, nanosTimeout); in doAcquireNanos()
1037 private boolean doAcquireSharedNanos(int arg, long nanosTimeout) in doAcquireSharedNanos() argument
1039 if (nanosTimeout <= 0L) in doAcquireSharedNanos()
1041 final long deadline = System.nanoTime() + nanosTimeout; in doAcquireSharedNanos()
[all …]
DCondition.java359 long awaitNanos(long nanosTimeout) throws InterruptedException; in awaitNanos() argument
/libcore/jsr166-tests/src/test/java/jsr166/
DAbstractQueuedSynchronizerTest.java229 long nanosTimeout = MILLISECONDS.toNanos(timeoutMillis); in await() local
230 long nanosRemaining = c.awaitNanos(nanosTimeout); in await()
257 long nanosTimeout = MILLISECONDS.toNanos(timeoutMillis); in assertAwaitTimesOut() local
258 long nanosRemaining = c.awaitNanos(nanosTimeout); in assertAwaitTimesOut()
DAbstractQueuedLongSynchronizerTest.java226 long nanosTimeout = MILLISECONDS.toNanos(timeoutMillis); in await() local
227 long nanosRemaining = c.awaitNanos(nanosTimeout); in await()
254 long nanosTimeout = MILLISECONDS.toNanos(timeoutMillis); in assertAwaitTimesOut() local
255 long nanosRemaining = c.awaitNanos(nanosTimeout); in assertAwaitTimesOut()