Home
last modified time | relevance | path

Searched refs:getWaitQueueLength (Results 1 – 8 of 8) sorted by relevance

/libcore/luni/src/main/java/java/util/concurrent/locks/
DReentrantLock.java691 public int getWaitQueueLength(Condition condition) { in getWaitQueueLength() method in ReentrantLock
696 return sync.getWaitQueueLength((AbstractQueuedSynchronizer.ConditionObject)condition); in getWaitQueueLength()
DReentrantReadWriteLock.java1413 public int getWaitQueueLength(Condition condition) { in getWaitQueueLength() method in ReentrantReadWriteLock
1418 return sync.getWaitQueueLength((AbstractQueuedSynchronizer.ConditionObject)condition); in getWaitQueueLength()
DAbstractQueuedLongSynchronizer.java1310 public final int getWaitQueueLength(ConditionObject condition) { in getWaitQueueLength() method in AbstractQueuedLongSynchronizer
1313 return condition.getWaitQueueLength(); in getWaitQueueLength()
1749 protected final int getWaitQueueLength() { in getWaitQueueLength() method in AbstractQueuedLongSynchronizer.ConditionObject
DAbstractQueuedSynchronizer.java1781 public final int getWaitQueueLength(ConditionObject condition) { in getWaitQueueLength() method in AbstractQueuedSynchronizer
1784 return condition.getWaitQueueLength(); in getWaitQueueLength()
2218 protected final int getWaitQueueLength() { in getWaitQueueLength() method in AbstractQueuedSynchronizer.ConditionObject
/libcore/jsr166-tests/src/test/java/jsr166/
DReentrantLockTest.java143 assertEquals(threads.length, lock.getWaitQueueLength(c)); in assertHasWaiters()
630 lock.getWaitQueueLength(null); in testGetWaitQueueLengthNPE()
687 lock2.getWaitQueueLength(c); in testGetWaitQueueLengthIAE()
701 lock.getWaitQueueLength(c); in testGetWaitQueueLengthIMSE()
782 assertEquals(0, lock.getWaitQueueLength(c)); in testGetWaitQueueLength()
792 assertEquals(1, lock.getWaitQueueLength(c)); in testGetWaitQueueLength()
799 assertEquals(0, lock.getWaitQueueLength(c)); in testGetWaitQueueLength()
807 assertEquals(1, lock.getWaitQueueLength(c)); in testGetWaitQueueLength()
815 assertEquals(2, lock.getWaitQueueLength(c)); in testGetWaitQueueLength()
DAbstractQueuedLongSynchronizerTest.java203 assertEquals(threads.length, sync.getWaitQueueLength(c)); in assertHasWaitersLocked()
720 sync.getWaitQueueLength(null);
771 sync2.getWaitQueueLength(c);
784 sync.getWaitQueueLength(c);
861 assertEquals(0, sync.getWaitQueueLength(c));
869 assertEquals(1, sync.getWaitQueueLength(c));
876 assertEquals(1, sync.getWaitQueueLength(c));
885 assertEquals(2, sync.getWaitQueueLength(c));
889 assertEquals(0, sync.getWaitQueueLength(c));
DAbstractQueuedSynchronizerTest.java206 assertEquals(threads.length, sync.getWaitQueueLength(c)); in assertHasWaitersLocked()
723 sync.getWaitQueueLength(null);
774 sync2.getWaitQueueLength(c);
787 sync.getWaitQueueLength(c);
864 assertEquals(0, sync.getWaitQueueLength(c));
872 assertEquals(1, sync.getWaitQueueLength(c));
879 assertEquals(1, sync.getWaitQueueLength(c));
888 assertEquals(2, sync.getWaitQueueLength(c));
892 assertEquals(0, sync.getWaitQueueLength(c));
DReentrantReadWriteLockTest.java152 assertEquals(threads.length, lock.getWaitQueueLength(c)); in assertHasWaiters()
1410 lock.getWaitQueueLength(null); in testGetWaitQueueLengthNPE()
1467 lock2.getWaitQueueLength(c); in testGetWaitQueueLengthIAE()
1481 lock.getWaitQueueLength(c); in testGetWaitQueueLengthIMSE()
1565 assertEquals(0, lock.getWaitQueueLength(c)); in testGetWaitQueueLength()
1574 assertEquals(1, lock.getWaitQueueLength(c)); in testGetWaitQueueLength()
1577 assertEquals(0, lock.getWaitQueueLength(c)); in testGetWaitQueueLength()