/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | AbstractQueuedLongSynchronizerTest.java | 232 assertEquals(threads.length == 0, sync.getWaitingThreads(c).isEmpty()); in assertHasWaitersLocked() 233 assertEquals(threads.length, sync.getWaitingThreads(c).size()); in assertHasWaitersLocked() 234 assertEquals(new HashSet<Thread>(sync.getWaitingThreads(c)), in assertHasWaitersLocked() 759 sync.getWaitingThreads(null); 826 sync2.getWaitingThreads(c); 839 sync.getWaitingThreads(c); 937 assertTrue(sync.getWaitingThreads(c).isEmpty()); 947 assertTrue(sync.getWaitingThreads(c).contains(t1)); 948 assertFalse(sync.getWaitingThreads(c).isEmpty()); 949 assertEquals(1, sync.getWaitingThreads(c).size()); [all …]
|
D | AbstractQueuedSynchronizerTest.java | 235 assertEquals(threads.length == 0, sync.getWaitingThreads(c).isEmpty()); in assertHasWaitersLocked() 236 assertEquals(threads.length, sync.getWaitingThreads(c).size()); in assertHasWaitersLocked() 237 assertEquals(new HashSet<Thread>(sync.getWaitingThreads(c)), in assertHasWaitersLocked() 762 sync.getWaitingThreads(null); 829 sync2.getWaitingThreads(c); 842 sync.getWaitingThreads(c); 940 assertTrue(sync.getWaitingThreads(c).isEmpty()); 950 assertTrue(sync.getWaitingThreads(c).contains(t1)); 951 assertFalse(sync.getWaitingThreads(c).isEmpty()); 952 assertEquals(1, sync.getWaitingThreads(c).size()); [all …]
|
D | ReentrantLockTest.java | 94 public Collection<Thread> getWaitingThreads(Condition c) { in getWaitingThreads() method in ReentrantLockTest.PublicReentrantLock 95 return super.getWaitingThreads(c); in getWaitingThreads() 167 assertEquals(threads.length == 0, lock.getWaitingThreads(c).isEmpty()); in assertHasWaiters() 168 assertEquals(threads.length, lock.getWaitingThreads(c).size()); in assertHasWaiters() 169 assertEquals(new HashSet<Thread>(lock.getWaitingThreads(c)), in assertHasWaiters() 666 lock.getWaitingThreads(null); in testGetWaitingThreadsNPE() 739 lock2.getWaitingThreads(c); in testGetWaitingThreadsIAE() 753 lock.getWaitingThreads(c); in testGetWaitingThreadsIMSE() 862 assertTrue(lock.getWaitingThreads(c).isEmpty()); in testGetWaitingThreads() 871 assertFalse(lock.getWaitingThreads(c).isEmpty()); in testGetWaitingThreads() [all …]
|
/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 | 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
|
/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
|