Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DReentrantLock.java700 public boolean hasWaiters(Condition condition) { in hasWaiters() method in ReentrantLock
705 return sync.hasWaiters((AbstractQueuedSynchronizer.ConditionObject)condition); in hasWaiters()
DReentrantReadWriteLock.java1419 public boolean hasWaiters(Condition condition) { in hasWaiters() method in ReentrantReadWriteLock
1424 return sync.hasWaiters((AbstractQueuedSynchronizer.ConditionObject)condition); in hasWaiters()
DAbstractQueuedLongSynchronizer.java1317 public final boolean hasWaiters(ConditionObject condition) { in hasWaiters() method in AbstractQueuedLongSynchronizer
1320 return condition.hasWaiters(); in hasWaiters()
1759 protected final boolean hasWaiters() { in hasWaiters() method in AbstractQueuedLongSynchronizer.ConditionObject
DAbstractQueuedSynchronizer.java1791 public final boolean hasWaiters(ConditionObject condition) { in hasWaiters() method in AbstractQueuedSynchronizer
1794 return condition.hasWaiters(); in hasWaiters()
2231 protected final boolean hasWaiters() { in hasWaiters() method in AbstractQueuedSynchronizer.ConditionObject
/libcore/jsr166-tests/src/test/java/jsr166/
DReentrantLockTest.java142 assertEquals(threads.length > 0, lock.hasWaiters(c)); in assertHasWaiters()
617 lock.hasWaiters(null); in testHasWaitersNPE()
658 lock2.hasWaiters(c); in testHasWaitersIAE()
672 lock.hasWaiters(c); in testHasWaitersIMSE()
748 assertFalse(lock.hasWaiters(c)); in testHasWaiters()
752 assertFalse(lock.hasWaiters(c)); in testHasWaiters()
759 assertTrue(lock.hasWaiters(c)); in testHasWaiters()
762 assertFalse(lock.hasWaiters(c)); in testHasWaiters()
781 assertFalse(lock.hasWaiters(c)); in testGetWaitQueueLength()
791 assertTrue(lock.hasWaiters(c)); in testGetWaitQueueLength()
DAbstractQueuedSynchronizerTest.java205 assertEquals(threads.length > 0, sync.hasWaiters(c)); in assertHasWaitersLocked()
712 sync.hasWaiters(null);
747 sync2.hasWaiters(c);
760 sync.hasWaiters(c);
831 assertFalse(sync.hasWaiters(c));
841 assertTrue(sync.hasWaiters(c));
845 assertFalse(sync.hasWaiters(c));
DAbstractQueuedLongSynchronizerTest.java202 assertEquals(threads.length > 0, sync.hasWaiters(c)); in assertHasWaitersLocked()
709 sync.hasWaiters(null);
744 sync2.hasWaiters(c);
757 sync.hasWaiters(c);
828 assertFalse(sync.hasWaiters(c));
838 assertTrue(sync.hasWaiters(c));
842 assertFalse(sync.hasWaiters(c));
DReentrantReadWriteLockTest.java151 assertEquals(threads.length > 0, lock.hasWaiters(c)); in assertHasWaiters()
1397 lock.hasWaiters(null); in testHasWaitersNPE()
1438 lock2.hasWaiters(c); in testHasWaitersIAE()
1452 lock.hasWaiters(c); in testHasWaitersIMSE()
1532 assertFalse(lock.hasWaiters(c)); in testHasWaiters()
1536 assertFalse(lock.hasWaiters(c)); in testHasWaiters()
1543 assertTrue(lock.hasWaiters(c)); in testHasWaiters()
1546 assertFalse(lock.hasWaiters(c)); in testHasWaiters()
1621 assertTrue(lock.hasWaiters(c)); in testGetWaitingThreads()
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/locks/
DReentrantLock.java112 public boolean hasWaiters(java.util.concurrent.locks.Condition condition) { in hasWaiters() method in ReentrantLock
/libcore/ojluni/src/main/java/java/util/concurrent/
DArrayBlockingQueue.java641 for (; k > 0 && lock.hasWaiters(notFull); k--) in clear()
699 for (; i > 0 && lock.hasWaiters(notFull); i--) in drainTo()