Home
last modified time | relevance | path

Searched refs:tryOptimisticRead (Results 1 – 2 of 2) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DStampedLockTest.java261 assertTrue((s = lock.tryOptimisticRead()) != 0L); in testValidate()
276 assertFalse(lock.validate(lock.tryOptimisticRead())); in testValidate2()
649 assertTrue((p = lock.tryOptimisticRead()) != 0L); in testValidateOptimistic()
652 assertFalse((p = lock.tryOptimisticRead()) != 0L); in testValidateOptimistic()
655 assertTrue((p = lock.tryOptimisticRead()) != 0L); in testValidateOptimistic()
659 assertTrue((p = lock.tryOptimisticRead()) != 0L); in testValidateOptimistic()
664 assertFalse((p = lock.tryOptimisticRead()) != 0L); in testValidateOptimistic()
668 assertTrue((p = lock.tryOptimisticRead()) != 0L); in testValidateOptimistic()
672 assertFalse((p = lock.tryOptimisticRead()) != 0L); in testValidateOptimistic()
677 assertTrue((p = lock.tryOptimisticRead()) != 0L); in testValidateOptimistic()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DStampedLock.java507 public long tryOptimisticRead() { in tryOptimisticRead() method in StampedLock