Searched refs:casState (Results 1 – 1 of 1) sorted by relevance
/libcore/ojluni/src/main/java/java/util/concurrent/locks/ |
D | StampedLock.java | 422 private boolean casState(long expect, long update) { in casState() method in StampedLock 429 if (((s = state) & ABITS) == 0L && casState(s, nextState = s | WBIT)) { in tryAcquireWrite() 440 if (casState(s, nextState = s + RUNIT)) in tryAcquireRead() 476 if (casState(s, nextState = s | WBIT)) { in writeLock() 551 if (casState(s, nextState = s + RUNIT)) in readLock() 673 if (casState(s, s - RUNIT)) { in unlockRead() 719 if (casState(s, nextState = s | WBIT)) { in tryConvertToWriteLock() 728 if (casState(s, nextState = s - RUNIT + WBIT)) in tryConvertToWriteLock() 758 if (casState(s, nextState = s + RUNIT)) in tryConvertToReadLock() 794 if (casState(s, nextState = s - RUNIT)) { in tryConvertToOptimisticRead() [all …]
|