Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DReentrantLock.java723 public int getWaitQueueLength(Condition condition) { in getWaitQueueLength() method in ReentrantLock
728 return sync.getWaitQueueLength((AbstractQueuedSynchronizer.ConditionObject)condition); in getWaitQueueLength()
DReentrantReadWriteLock.java1442 public int getWaitQueueLength(Condition condition) { in getWaitQueueLength() method in ReentrantReadWriteLock
1447 return sync.getWaitQueueLength((AbstractQueuedSynchronizer.ConditionObject)condition); in getWaitQueueLength()
DAbstractQueuedLongSynchronizer.java1339 public final int getWaitQueueLength(ConditionObject condition) { in getWaitQueueLength() method in AbstractQueuedLongSynchronizer
1342 return condition.getWaitQueueLength(); in getWaitQueueLength()
1778 protected final int getWaitQueueLength() { in getWaitQueueLength() method in AbstractQueuedLongSynchronizer.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()
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()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DReentrantLockTest.java166 assertEquals(threads.length, lock.getWaitQueueLength(c)); in assertHasWaiters()
653 lock.getWaitQueueLength(null); in testGetWaitQueueLengthNPE()
710 lock2.getWaitQueueLength(c); in testGetWaitQueueLengthIAE()
724 lock.getWaitQueueLength(c); in testGetWaitQueueLengthIMSE()
805 assertEquals(0, lock.getWaitQueueLength(c)); in testGetWaitQueueLength()
815 assertEquals(1, lock.getWaitQueueLength(c)); in testGetWaitQueueLength()
822 assertEquals(0, lock.getWaitQueueLength(c)); in testGetWaitQueueLength()
830 assertEquals(1, lock.getWaitQueueLength(c)); in testGetWaitQueueLength()
838 assertEquals(2, lock.getWaitQueueLength(c)); in testGetWaitQueueLength()
DAbstractQueuedLongSynchronizerTest.java231 assertEquals(threads.length, sync.getWaitQueueLength(c)); in assertHasWaitersLocked()
748 sync.getWaitQueueLength(null);
799 sync2.getWaitQueueLength(c);
812 sync.getWaitQueueLength(c);
889 assertEquals(0, sync.getWaitQueueLength(c));
897 assertEquals(1, sync.getWaitQueueLength(c));
904 assertEquals(1, sync.getWaitQueueLength(c));
913 assertEquals(2, sync.getWaitQueueLength(c));
917 assertEquals(0, sync.getWaitQueueLength(c));
DAbstractQueuedSynchronizerTest.java234 assertEquals(threads.length, sync.getWaitQueueLength(c)); in assertHasWaitersLocked()
751 sync.getWaitQueueLength(null);
802 sync2.getWaitQueueLength(c);
815 sync.getWaitQueueLength(c);
892 assertEquals(0, sync.getWaitQueueLength(c));
900 assertEquals(1, sync.getWaitQueueLength(c));
907 assertEquals(1, sync.getWaitQueueLength(c));
916 assertEquals(2, sync.getWaitQueueLength(c));
920 assertEquals(0, sync.getWaitQueueLength(c));
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/locks/
DReentrantLock.java116 public int getWaitQueueLength(java.util.concurrent.locks.Condition condition) { in getWaitQueueLength() method in ReentrantLock