Searched refs:getWaitingThreads (Results 1 – 8 of 8) sorted by relevance
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | AbstractQueuedLongSynchronizerTest.java | 188 assertEquals(threads.length == 0, sync.getWaitingThreads(c).isEmpty()); in assertHasWaitersLocked() 189 assertEquals(threads.length, sync.getWaitingThreads(c).size()); in assertHasWaitersLocked() 190 assertEquals(new HashSet<Thread>(sync.getWaitingThreads(c)), in assertHasWaitersLocked() 705 sync.getWaitingThreads(null); 772 sync2.getWaitingThreads(c); 785 sync.getWaitingThreads(c); 883 assertTrue(sync.getWaitingThreads(c).isEmpty()); 893 assertTrue(sync.getWaitingThreads(c).contains(t1)); 894 assertFalse(sync.getWaitingThreads(c).isEmpty()); 895 assertEquals(1, sync.getWaitingThreads(c).size()); [all …]
|
D | AbstractQueuedSynchronizerTest.java | 191 assertEquals(threads.length == 0, sync.getWaitingThreads(c).isEmpty()); in assertHasWaitersLocked() 192 assertEquals(threads.length, sync.getWaitingThreads(c).size()); in assertHasWaitersLocked() 193 assertEquals(new HashSet<Thread>(sync.getWaitingThreads(c)), in assertHasWaitersLocked() 708 sync.getWaitingThreads(null); 775 sync2.getWaitingThreads(c); 788 sync.getWaitingThreads(c); 886 assertTrue(sync.getWaitingThreads(c).isEmpty()); 896 assertTrue(sync.getWaitingThreads(c).contains(t1)); 897 assertFalse(sync.getWaitingThreads(c).isEmpty()); 898 assertEquals(1, sync.getWaitingThreads(c).size()); [all …]
|
D | ReentrantLockTest.java | 56 public Collection<Thread> getWaitingThreads(Condition c) { in getWaitingThreads() method in ReentrantLockTest.PublicReentrantLock 57 return super.getWaitingThreads(c); in getWaitingThreads() 129 assertEquals(threads.length == 0, lock.getWaitingThreads(c).isEmpty()); in assertHasWaiters() 130 assertEquals(threads.length, lock.getWaitingThreads(c).size()); in assertHasWaiters() 131 assertEquals(new HashSet<Thread>(lock.getWaitingThreads(c)), in assertHasWaiters() 635 lock.getWaitingThreads(null); in testGetWaitingThreadsNPE() 708 lock2.getWaitingThreads(c); in testGetWaitingThreadsIAE() 722 lock.getWaitingThreads(c); in testGetWaitingThreadsIMSE() 831 assertTrue(lock.getWaitingThreads(c).isEmpty()); in testGetWaitingThreads() 840 assertFalse(lock.getWaitingThreads(c).isEmpty()); in testGetWaitingThreads() [all …]
|
D | ReentrantReadWriteLockTest.java | 57 public Collection<Thread> getWaitingThreads(Condition c) { in getWaitingThreads() method in ReentrantReadWriteLockTest.PublicReentrantReadWriteLock 58 return super.getWaitingThreads(c); in getWaitingThreads() 138 assertEquals(threads.length == 0, lock.getWaitingThreads(c).isEmpty()); in assertHasWaiters() 139 assertEquals(threads.length, lock.getWaitingThreads(c).size()); in assertHasWaiters() 140 assertEquals(new HashSet<Thread>(lock.getWaitingThreads(c)), in assertHasWaiters() 1412 lock.getWaitingThreads(null); in testGetWaitingThreadsNPE() 1487 lock2.getWaitingThreads(c); in testGetWaitingThreadsIAE() 1502 lock.getWaitingThreads(c); in testGetWaitingThreadsIMSE() 1585 assertTrue(lock.getWaitingThreads(c).isEmpty()); in testGetWaitingThreads() 1594 assertFalse(lock.getWaitingThreads(c).isEmpty()); in testGetWaitingThreads() [all …]
|
/libcore/luni/src/main/java/java/util/concurrent/locks/ |
D | ReentrantLock.java | 711 protected Collection<Thread> getWaitingThreads(Condition condition) { in getWaitingThreads() method in ReentrantLock 716 return sync.getWaitingThreads((AbstractQueuedSynchronizer.ConditionObject)condition); in getWaitingThreads()
|
D | ReentrantReadWriteLock.java | 1432 protected Collection<Thread> getWaitingThreads(Condition condition) { in getWaitingThreads() method in ReentrantReadWriteLock 1437 return sync.getWaitingThreads((AbstractQueuedSynchronizer.ConditionObject)condition); in getWaitingThreads()
|
D | AbstractQueuedSynchronizer.java | 1786 public final Collection<Thread> getWaitingThreads(ConditionObject condition) { in getWaitingThreads() method in AbstractQueuedSynchronizer 1789 return condition.getWaitingThreads(); in getWaitingThreads() 2213 protected final Collection<Thread> getWaitingThreads() { in getWaitingThreads() method in AbstractQueuedSynchronizer.ConditionObject
|
D | AbstractQueuedLongSynchronizer.java | 1556 public final Collection<Thread> getWaitingThreads(ConditionObject condition) { in getWaitingThreads() method in AbstractQueuedLongSynchronizer 1559 return condition.getWaitingThreads(); in getWaitingThreads() 1985 protected final Collection<Thread> getWaitingThreads() { in getWaitingThreads() method in AbstractQueuedLongSynchronizer.ConditionObject
|