Searched refs:getReadLockCount (Results 1 – 3 of 3) sorted by relevance
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ReentrantReadWriteLockTest.java | 128 assertEquals(0, lock.getReadLockCount()); in assertWriteLockedBy() 198 assertEquals(0, lock.getReadLockCount()); in testConstructor() 203 assertEquals(0, lock.getReadLockCount()); in testConstructor() 208 assertEquals(0, lock.getReadLockCount()); in testConstructor() 224 assertEquals(0, lock.getReadLockCount()); in testLock() 227 assertEquals(1, lock.getReadLockCount()); in testLock() 230 assertEquals(0, lock.getReadLockCount()); in testLock() 475 assertEquals(1, lock.getReadLockCount()); in testWriteAfterReadLock() 477 assertEquals(0, lock.getReadLockCount()); in testWriteAfterReadLock() 482 assertEquals(1, lock.getReadLockCount()); in testWriteAfterReadLock() [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/locks/ |
D | ReentrantReadWriteLock.java | 626 final int getReadLockCount() { in getReadLockCount() method in ReentrantReadWriteLock.Sync 639 if (getReadLockCount() == 0) in getReadHoldCount() 909 int r = sync.getReadLockCount(); in toString() 1265 public int getReadLockCount() { in getReadLockCount() method in ReentrantReadWriteLock 1266 return sync.getReadLockCount(); in getReadLockCount()
|
D | StampedLock.java | 777 private int getReadLockCount(long s) { in getReadLockCount() method in StampedLock 808 public int getReadLockCount() { in getReadLockCount() method in StampedLock 809 return getReadLockCount(state); in getReadLockCount() 826 "[Read-locks:" + getReadLockCount(s) + "]"); in toString()
|