/libcore/jsr166-tests/src/test/java/jsr166/ |
D | AbstractQueuedSynchronizerTest.java | 207 assertEquals(threads.length == 0, sync.getWaitingThreads(c).isEmpty()); in assertHasWaitersLocked() 208 assertEquals(threads.length, sync.getWaitingThreads(c).size()); in assertHasWaitersLocked() 209 assertEquals(new HashSet<Thread>(sync.getWaitingThreads(c)), in assertHasWaitersLocked() 734 sync.getWaitingThreads(null); 801 sync2.getWaitingThreads(c); 814 sync.getWaitingThreads(c); 912 assertTrue(sync.getWaitingThreads(c).isEmpty()); 922 assertTrue(sync.getWaitingThreads(c).contains(t1)); 923 assertFalse(sync.getWaitingThreads(c).isEmpty()); 924 assertEquals(1, sync.getWaitingThreads(c).size()); [all …]
|
D | AbstractQueuedLongSynchronizerTest.java | 204 assertEquals(threads.length == 0, sync.getWaitingThreads(c).isEmpty()); in assertHasWaitersLocked() 205 assertEquals(threads.length, sync.getWaitingThreads(c).size()); in assertHasWaitersLocked() 206 assertEquals(new HashSet<Thread>(sync.getWaitingThreads(c)), in assertHasWaitersLocked() 731 sync.getWaitingThreads(null); 798 sync2.getWaitingThreads(c); 811 sync.getWaitingThreads(c); 909 assertTrue(sync.getWaitingThreads(c).isEmpty()); 919 assertTrue(sync.getWaitingThreads(c).contains(t1)); 920 assertFalse(sync.getWaitingThreads(c).isEmpty()); 921 assertEquals(1, sync.getWaitingThreads(c).size()); [all …]
|
D | ReentrantLockTest.java | 71 public Collection<Thread> getWaitingThreads(Condition c) { in getWaitingThreads() method in ReentrantLockTest.PublicReentrantLock 72 return super.getWaitingThreads(c); in getWaitingThreads() 144 assertEquals(threads.length == 0, lock.getWaitingThreads(c).isEmpty()); in assertHasWaiters() 145 assertEquals(threads.length, lock.getWaitingThreads(c).size()); in assertHasWaiters() 146 assertEquals(new HashSet<Thread>(lock.getWaitingThreads(c)), in assertHasWaiters() 643 lock.getWaitingThreads(null); in testGetWaitingThreadsNPE() 716 lock2.getWaitingThreads(c); in testGetWaitingThreadsIAE() 730 lock.getWaitingThreads(c); in testGetWaitingThreadsIMSE() 839 assertTrue(lock.getWaitingThreads(c).isEmpty()); in testGetWaitingThreads() 848 assertFalse(lock.getWaitingThreads(c).isEmpty()); in testGetWaitingThreads() [all …]
|
D | ReentrantReadWriteLockTest.java | 72 public Collection<Thread> getWaitingThreads(Condition c) { in getWaitingThreads() method in ReentrantReadWriteLockTest.PublicReentrantReadWriteLock 73 return super.getWaitingThreads(c); in getWaitingThreads() 153 assertEquals(threads.length == 0, lock.getWaitingThreads(c).isEmpty()); in assertHasWaiters() 154 assertEquals(threads.length, lock.getWaitingThreads(c).size()); in assertHasWaiters() 155 assertEquals(new HashSet<Thread>(lock.getWaitingThreads(c)), in assertHasWaiters() 1423 lock.getWaitingThreads(null); in testGetWaitingThreadsNPE() 1498 lock2.getWaitingThreads(c); in testGetWaitingThreadsIAE() 1513 lock.getWaitingThreads(c); in testGetWaitingThreadsIMSE() 1596 assertTrue(lock.getWaitingThreads(c).isEmpty()); in testGetWaitingThreads() 1605 assertFalse(lock.getWaitingThreads(c).isEmpty()); in testGetWaitingThreads() [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/locks/ |
D | ReentrantLock.java | 748 protected Collection<Thread> getWaitingThreads(Condition condition) { in getWaitingThreads() method in ReentrantLock 753 return sync.getWaitingThreads((AbstractQueuedSynchronizer.ConditionObject)condition); in getWaitingThreads()
|
D | ReentrantReadWriteLock.java | 1467 protected Collection<Thread> getWaitingThreads(Condition condition) { in getWaitingThreads() method in ReentrantReadWriteLock 1472 return sync.getWaitingThreads((AbstractQueuedSynchronizer.ConditionObject)condition); in getWaitingThreads()
|
D | AbstractQueuedLongSynchronizer.java | 1361 public final Collection<Thread> getWaitingThreads(ConditionObject condition) { in getWaitingThreads() method in AbstractQueuedLongSynchronizer 1364 return condition.getWaitingThreads(); in getWaitingThreads() 1798 protected final Collection<Thread> getWaitingThreads() { in getWaitingThreads() method in AbstractQueuedLongSynchronizer.ConditionObject
|
D | AbstractQueuedSynchronizer.java | 1835 public final Collection<Thread> getWaitingThreads(ConditionObject condition) { in getWaitingThreads() method in AbstractQueuedSynchronizer 1838 return condition.getWaitingThreads(); in getWaitingThreads() 2270 protected final Collection<Thread> getWaitingThreads() { in getWaitingThreads() method in AbstractQueuedSynchronizer.ConditionObject
|
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/locks/ |
D | ReentrantLock.java | 120 protected java.util.Collection<java.lang.Thread> getWaitingThreads( in getWaitingThreads() method in ReentrantLock
|