Home
last modified time | relevance | path

Searched refs:isWriteLocked (Results 1 – 4 of 4) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DStampedLockTest.java57 assertTrue(lock.isWriteLocked()); in releaseWriteLock()
59 assertFalse(lock.isWriteLocked()); in releaseWriteLock()
68 assertFalse(lock.isWriteLocked()); in testConstructor()
78 assertFalse(lock.isWriteLocked()); in testLock()
82 assertTrue(lock.isWriteLocked()); in testLock()
86 assertFalse(lock.isWriteLocked()); in testLock()
90 assertFalse(lock.isWriteLocked()); in testLock()
94 assertFalse(lock.isWriteLocked()); in testLock()
104 assertFalse(lock.isWriteLocked()); in testUnlock()
108 assertTrue(lock.isWriteLocked()); in testUnlock()
[all …]
DReentrantReadWriteLockTest.java106 assertFalse(lock.isWriteLocked()); in assertNotWriteLocked()
118 assertTrue(lock.isWriteLocked()); in assertWriteLockedBy()
1245 assertTrue(lock.isWriteLocked()); in testSerialization()
1246 assertFalse(clone.isWriteLocked()); in testSerialization()
1251 assertTrue(clone.isWriteLocked()); in testSerialization()
1255 assertFalse(clone.isWriteLocked()); in testSerialization()
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DReentrantReadWriteLock.java630 final boolean isWriteLocked() { in isWriteLocked() method in ReentrantReadWriteLock.Sync
1277 public boolean isWriteLocked() { in isWriteLocked() method in ReentrantReadWriteLock
1278 return sync.isWriteLocked(); in isWriteLocked()
DStampedLock.java789 public boolean isWriteLocked() { in isWriteLocked() method in StampedLock