Home
last modified time | relevance | path

Searched refs:tryOptimisticRead (Results 1 – 5 of 5) 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/test/java/util/concurrent/tck/
DStampedLockTest.java98 assertValid(lock, lock.tryOptimisticRead()); in assertUnlocked()
119 readLockers.add(sl -> sl.tryConvertToReadLock(sl.tryOptimisticRead())); in readLockers()
140 writeLockers.add(sl -> sl.tryConvertToWriteLock(sl.tryOptimisticRead())); in writeLockers()
282 assertFalse(lock.validate(lock.tryOptimisticRead())); in testValidate2()
733 assertValid(lock, lock.tryOptimisticRead()); in testValidateOptimistic()
737 assertEquals(0L, lock.tryOptimisticRead()); in testValidateOptimistic()
743 long p = assertValid(lock, lock.tryOptimisticRead()); in testValidateOptimistic()
748 assertValid(lock, lock.tryOptimisticRead()); in testValidateOptimistic()
756 final long p = assertValid(lock, lock.tryOptimisticRead()); in testValidateOptimisticWriteLocked()
759 assertEquals(0L, lock.tryOptimisticRead()); in testValidateOptimisticWriteLocked()
[all …]
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DStampedLockTest.java38 stamp = lock.tryOptimisticRead(); in testIsLockStamp()
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DStampedLock.java621 public long tryOptimisticRead() { in tryOptimisticRead() method in StampedLock
/libcore/api/
Dcurrent.txt17051 method public long tryOptimisticRead();