Home
last modified time | relevance | path

Searched refs:getQueuedThreads (Results 1 – 11 of 11) sorted by relevance

/libcore/ojluni/src/test/java/util/concurrent/tck/
DSemaphoreTest.java61 public Collection<Thread> getQueuedThreads() { in getQueuedThreads() method in SemaphoreTest.PublicSemaphore
62 return super.getQueuedThreads(); in getQueuedThreads()
65 return super.getQueuedThreads().contains(t); in hasQueuedThread()
394 assertTrue(lock.getQueuedThreads().isEmpty()); in testGetQueuedThreads()
396 assertTrue(lock.getQueuedThreads().isEmpty()); in testGetQueuedThreads()
399 assertTrue(lock.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
402 assertTrue(lock.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
403 assertTrue(lock.getQueuedThreads().contains(t2)); in testGetQueuedThreads()
406 assertFalse(lock.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
407 assertTrue(lock.getQueuedThreads().contains(t2)); in testGetQueuedThreads()
[all …]
DReentrantLockTest.java91 public Collection<Thread> getQueuedThreads() { in getQueuedThreads() method in ReentrantLockTest.PublicReentrantLock
92 return super.getQueuedThreads(); in getQueuedThreads()
365 assertTrue(lock.getQueuedThreads().isEmpty()); in testGetQueuedThreads()
367 assertTrue(lock.getQueuedThreads().isEmpty()); in testGetQueuedThreads()
370 assertEquals(1, lock.getQueuedThreads().size()); in testGetQueuedThreads()
371 assertTrue(lock.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
374 assertEquals(2, lock.getQueuedThreads().size()); in testGetQueuedThreads()
375 assertTrue(lock.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
376 assertTrue(lock.getQueuedThreads().contains(t2)); in testGetQueuedThreads()
379 assertFalse(lock.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
[all …]
DAbstractQueuedLongSynchronizerTest.java176 Collection<Thread> actual = sync.getQueuedThreads(); in assertHasQueuedThreads()
197 new HashSet<Thread>(sync.getQueuedThreads())); in assertHasExclusiveQueuedThreads()
209 new HashSet<Thread>(sync.getQueuedThreads())); in assertHasSharedQueuedThreads()
447 assertTrue(sync.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
448 assertFalse(sync.getQueuedThreads().contains(t2)); in testGetQueuedThreads()
452 assertTrue(sync.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
453 assertTrue(sync.getQueuedThreads().contains(t2)); in testGetQueuedThreads()
DAbstractQueuedSynchronizerTest.java179 Collection<Thread> actual = sync.getQueuedThreads(); in assertHasQueuedThreads()
200 new HashSet<Thread>(sync.getQueuedThreads())); in assertHasExclusiveQueuedThreads()
212 new HashSet<Thread>(sync.getQueuedThreads())); in assertHasSharedQueuedThreads()
450 assertTrue(sync.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
451 assertFalse(sync.getQueuedThreads().contains(t2)); in testGetQueuedThreads()
455 assertTrue(sync.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
456 assertTrue(sync.getQueuedThreads().contains(t2)); in testGetQueuedThreads()
/libcore/jsr166-tests/src/test/java/jsr166/
DReentrantLockTest.java68 public Collection<Thread> getQueuedThreads() { in getQueuedThreads() method in ReentrantLockTest.PublicReentrantLock
69 return super.getQueuedThreads(); in getQueuedThreads()
342 assertTrue(lock.getQueuedThreads().isEmpty()); in testGetQueuedThreads()
344 assertTrue(lock.getQueuedThreads().isEmpty()); in testGetQueuedThreads()
347 assertEquals(1, lock.getQueuedThreads().size()); in testGetQueuedThreads()
348 assertTrue(lock.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
351 assertEquals(2, lock.getQueuedThreads().size()); in testGetQueuedThreads()
352 assertTrue(lock.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
353 assertTrue(lock.getQueuedThreads().contains(t2)); in testGetQueuedThreads()
356 assertFalse(lock.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
[all …]
DReentrantReadWriteLockTest.java69 public Collection<Thread> getQueuedThreads() { in getQueuedThreads() method in ReentrantReadWriteLockTest.PublicReentrantReadWriteLock
70 return super.getQueuedThreads(); in getQueuedThreads()
1367 assertTrue(lock.getQueuedThreads().isEmpty()); in testGetQueuedThreads()
1369 assertTrue(lock.getQueuedThreads().isEmpty()); in testGetQueuedThreads()
1372 assertEquals(1, lock.getQueuedThreads().size()); in testGetQueuedThreads()
1373 assertTrue(lock.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
1376 assertEquals(2, lock.getQueuedThreads().size()); in testGetQueuedThreads()
1377 assertTrue(lock.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
1378 assertTrue(lock.getQueuedThreads().contains(t2)); in testGetQueuedThreads()
1381 assertFalse(lock.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
[all …]
DAbstractQueuedSynchronizerTest.java156 Collection<Thread> actual = sync.getQueuedThreads(); in assertHasQueuedThreads()
172 new HashSet<Thread>(sync.getQueuedThreads())); in assertHasExclusiveQueuedThreads()
184 new HashSet<Thread>(sync.getQueuedThreads())); in assertHasSharedQueuedThreads()
422 assertTrue(sync.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
423 assertFalse(sync.getQueuedThreads().contains(t2)); in testGetQueuedThreads()
427 assertTrue(sync.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
428 assertTrue(sync.getQueuedThreads().contains(t2)); in testGetQueuedThreads()
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DReentrantLock.java681 protected Collection<Thread> getQueuedThreads() { in getQueuedThreads() method in ReentrantLock
682 return sync.getQueuedThreads(); in getQueuedThreads()
DReentrantReadWriteLock.java1400 protected Collection<Thread> getQueuedThreads() { in getQueuedThreads() method in ReentrantReadWriteLock
1401 return sync.getQueuedThreads(); in getQueuedThreads()
DAbstractQueuedLongSynchronizer.java1111 public final Collection<Thread> getQueuedThreads() { in getQueuedThreads() method in AbstractQueuedLongSynchronizer
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/locks/
DReentrantLock.java108 protected java.util.Collection<java.lang.Thread> getQueuedThreads() { in getQueuedThreads() method in ReentrantLock