Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DReentrantLock.java451 return sync.tryAcquireNanos(1, unit.toNanos(timeout)); in tryLock()
DReentrantReadWriteLock.java1122 return sync.tryAcquireNanos(1, unit.toNanos(timeout)); in tryLock()
DAbstractQueuedLongSynchronizer.java800 public final boolean tryAcquireNanos(long arg, long nanosTimeout) in tryAcquireNanos() method in AbstractQueuedLongSynchronizer
/libcore/ojluni/src/test/java/util/concurrent/tck/
DAbstractQueuedLongSynchronizerTest.java85 public boolean tryAcquireNanos(long nanos) throws InterruptedException { in tryAcquireNanos() method in AbstractQueuedLongSynchronizerTest.Mutex
86 return tryAcquireNanos(LOCKED, nanos); in tryAcquireNanos()
546 sync.tryAcquireNanos(MILLISECONDS.toNanos(2 * LONG_DELAY_MS)); in testTryAcquireNanos_Interruptible()
579 assertFalse(sync.tryAcquireNanos(nanos)); in testAcquireNanos_Timeout()
DAbstractQueuedSynchronizerTest.java89 public boolean tryAcquireNanos(long nanos) throws InterruptedException { in tryAcquireNanos() method in AbstractQueuedSynchronizerTest.Mutex
90 return tryAcquireNanos(LOCKED, nanos); in tryAcquireNanos()
549 sync.tryAcquireNanos(MILLISECONDS.toNanos(2 * LONG_DELAY_MS)); in testTryAcquireNanos_Interruptible()
582 assertFalse(sync.tryAcquireNanos(nanos)); in testAcquireNanos_Timeout()
/libcore/jsr166-tests/src/test/java/jsr166/
DAbstractQueuedSynchronizerTest.java66 public boolean tryAcquireNanos(long nanos) throws InterruptedException { in tryAcquireNanos() method in AbstractQueuedSynchronizerTest.Mutex
67 return tryAcquireNanos(LOCKED, nanos); in tryAcquireNanos()
521 sync.tryAcquireNanos(MILLISECONDS.toNanos(2 * LONG_DELAY_MS)); in testTryAcquireNanos_Interruptible()
554 assertFalse(sync.tryAcquireNanos(nanos)); in testAcquireNanos_Timeout()