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
/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));
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/src/test/java/util/concurrent/tck/
DReentrantLockTest.java165 assertEquals(threads.length > 0, lock.hasWaiters(c)); in assertHasWaiters()
640 lock.hasWaiters(null); in testHasWaitersNPE()
681 lock2.hasWaiters(c); in testHasWaitersIAE()
695 lock.hasWaiters(c); in testHasWaitersIMSE()
771 assertFalse(lock.hasWaiters(c)); in testHasWaiters()
775 assertFalse(lock.hasWaiters(c)); in testHasWaiters()
782 assertTrue(lock.hasWaiters(c)); in testHasWaiters()
785 assertFalse(lock.hasWaiters(c)); in testHasWaiters()
804 assertFalse(lock.hasWaiters(c)); in testGetWaitQueueLength()
814 assertTrue(lock.hasWaiters(c)); in testGetWaitQueueLength()
DAbstractQueuedLongSynchronizerTest.java230 assertEquals(threads.length > 0, sync.hasWaiters(c)); in assertHasWaitersLocked()
737 sync.hasWaiters(null);
772 sync2.hasWaiters(c);
785 sync.hasWaiters(c);
856 assertFalse(sync.hasWaiters(c));
866 assertTrue(sync.hasWaiters(c));
870 assertFalse(sync.hasWaiters(c));
DAbstractQueuedSynchronizerTest.java233 assertEquals(threads.length > 0, sync.hasWaiters(c)); in assertHasWaitersLocked()
740 sync.hasWaiters(null);
775 sync2.hasWaiters(c);
788 sync.hasWaiters(c);
859 assertFalse(sync.hasWaiters(c));
869 assertTrue(sync.hasWaiters(c));
873 assertFalse(sync.hasWaiters(c));
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/locks/
DReentrantLock.java112 public boolean hasWaiters(java.util.concurrent.locks.Condition condition) { in hasWaiters() method in ReentrantLock