Searched refs:tryOptimisticRead (Results 1 – 5 of 5) sorted by relevance
261 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 …]
98 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 …]
38 stamp = lock.tryOptimisticRead(); in testIsLockStamp()
621 public long tryOptimisticRead() { in tryOptimisticRead() method in StampedLock
17051 method public long tryOptimisticRead();