Searched refs:tryReadLock (Results 1 – 5 of 5) sorted by relevance
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | StampedLockTest.java | 252 assertTrue((s = lock.tryReadLock()) != 0L); in testValidate() 258 assertTrue((s = lock.tryReadLock(100L, MILLISECONDS)) != 0L); in testValidate() 274 assertFalse(lock.validate(lock.tryReadLock())); in testValidate2() 275 assertFalse(lock.validate(lock.tryReadLock(10L, MILLISECONDS))); in testValidate2() 352 lock.tryReadLock(2 * LONG_DELAY_MS, MILLISECONDS); in testReadTryLock_Interruptible() 399 long rs = lock.tryReadLock(); in testReadTryLockWhenLocked() 415 long s2 = lock.tryReadLock(); in testMultipleReadLocks() 418 long s3 = lock.tryReadLock(LONG_DELAY_MS, MILLISECONDS); in testMultipleReadLocks() 507 long rs = lock.tryReadLock(); in testTryLockWhenReadLocked() 561 long rs = lock.tryReadLock(timeoutMillis, MILLISECONDS); in testReadTryLock_Timeout() [all …]
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | StampedLockTest.java | 115 readLockers.add(sl -> sl.tryReadLock()); in readLockers() 280 assertFalse(lock.validate(lock.tryReadLock())); in testValidate2() 281 assertFalse(lock.validate(lock.tryReadLock(0L, SECONDS))); in testValidate2() 310 () -> lock.tryReadLock(Long.MIN_VALUE, DAYS), in testInterruptibleOperationsThrowInterruptedExceptionWhenPreInterrupted() 311 () -> lock.tryReadLock(Long.MAX_VALUE, DAYS), in testInterruptibleOperationsThrowInterruptedExceptionWhenPreInterrupted() 374 () -> lock.tryReadLock(Long.MAX_VALUE, DAYS), in testInterruptibleOperationsThrowInterruptedExceptionWriteLockedInterrupted() 413 s = assertValid(lock, lock.tryReadLock()); in testNonInterruptibleOperationsIgnoreInterrupts() 469 assertEquals(0L, lock.tryReadLock()); in testTryReadLockWhenLocked() 472 assertEquals(0L, lock.tryReadLock()); in testTryReadLockWhenLocked() 485 long s2 = lock.tryReadLock(); in testMultipleReadLocks() [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/locks/ |
D | StampedLock.java | 563 public long tryReadLock() { in tryReadLock() method in StampedLock 580 public long tryReadLock(long time, TimeUnit unit) in tryReadLock() method in StampedLock 1043 public boolean tryLock() { return tryReadLock() != 0L; } in tryLock() 1046 return tryReadLock(time, unit) != 0L; in tryLock()
|
D | ReentrantReadWriteLock.java | 586 final boolean tryReadLock() { in tryReadLock() method in ReentrantReadWriteLock.Sync 810 return sync.tryReadLock(); in tryLock()
|
/libcore/api/ |
D | current.txt | 17052 method public long tryReadLock(); 17053 …method public long tryReadLock(long, java.util.concurrent.TimeUnit) throws java.lang.InterruptedEx…
|