Home
last modified time | relevance | path

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

/libcore/jsr166-tests/src/test/java/jsr166/
DSemaphoreTest.java25 public Collection<Thread> getQueuedThreads() { in getQueuedThreads() method in SemaphoreTest.PublicSemaphore
26 return super.getQueuedThreads(); in getQueuedThreads()
29 return super.getQueuedThreads().contains(t); in hasQueuedThread()
358 assertTrue(lock.getQueuedThreads().isEmpty()); in testGetQueuedThreads()
360 assertTrue(lock.getQueuedThreads().isEmpty()); in testGetQueuedThreads()
363 assertTrue(lock.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
366 assertTrue(lock.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
367 assertTrue(lock.getQueuedThreads().contains(t2)); in testGetQueuedThreads()
370 assertFalse(lock.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
371 assertTrue(lock.getQueuedThreads().contains(t2)); in testGetQueuedThreads()
[all …]
DReentrantLockTest.java53 public Collection<Thread> getQueuedThreads() { in getQueuedThreads() method in ReentrantLockTest.PublicReentrantLock
54 return super.getQueuedThreads(); in getQueuedThreads()
324 assertTrue(lock.getQueuedThreads().isEmpty()); in testGetQueuedThreads()
326 assertTrue(lock.getQueuedThreads().isEmpty()); in testGetQueuedThreads()
329 assertEquals(1, lock.getQueuedThreads().size()); in testGetQueuedThreads()
330 assertTrue(lock.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
333 assertEquals(2, lock.getQueuedThreads().size()); in testGetQueuedThreads()
334 assertTrue(lock.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
335 assertTrue(lock.getQueuedThreads().contains(t2)); in testGetQueuedThreads()
338 assertFalse(lock.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
[all …]
DReentrantReadWriteLockTest.java54 public Collection<Thread> getQueuedThreads() { in getQueuedThreads() method in ReentrantReadWriteLockTest.PublicReentrantReadWriteLock
55 return super.getQueuedThreads(); in getQueuedThreads()
1356 assertTrue(lock.getQueuedThreads().isEmpty()); in testGetQueuedThreads()
1358 assertTrue(lock.getQueuedThreads().isEmpty()); in testGetQueuedThreads()
1361 assertEquals(1, lock.getQueuedThreads().size()); in testGetQueuedThreads()
1362 assertTrue(lock.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
1365 assertEquals(2, lock.getQueuedThreads().size()); in testGetQueuedThreads()
1366 assertTrue(lock.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
1367 assertTrue(lock.getQueuedThreads().contains(t2)); in testGetQueuedThreads()
1370 assertFalse(lock.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
[all …]
DAbstractQueuedLongSynchronizerTest.java137 Collection<Thread> actual = sync.getQueuedThreads(); in assertHasQueuedThreads()
153 new HashSet<Thread>(sync.getQueuedThreads())); in assertHasExclusiveQueuedThreads()
165 new HashSet<Thread>(sync.getQueuedThreads())); in assertHasSharedQueuedThreads()
393 assertTrue(sync.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
394 assertFalse(sync.getQueuedThreads().contains(t2)); in testGetQueuedThreads()
398 assertTrue(sync.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
399 assertTrue(sync.getQueuedThreads().contains(t2)); in testGetQueuedThreads()
DAbstractQueuedSynchronizerTest.java140 Collection<Thread> actual = sync.getQueuedThreads(); in assertHasQueuedThreads()
156 new HashSet<Thread>(sync.getQueuedThreads())); in assertHasExclusiveQueuedThreads()
168 new HashSet<Thread>(sync.getQueuedThreads())); in assertHasSharedQueuedThreads()
396 assertTrue(sync.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
397 assertFalse(sync.getQueuedThreads().contains(t2)); in testGetQueuedThreads()
401 assertTrue(sync.getQueuedThreads().contains(t1)); in testGetQueuedThreads()
402 assertTrue(sync.getQueuedThreads().contains(t2)); in testGetQueuedThreads()
/libcore/luni/src/main/java/java/util/concurrent/
DSemaphore.java664 protected Collection<Thread> getQueuedThreads() { in getQueuedThreads() method in Semaphore
665 return sync.getQueuedThreads(); in getQueuedThreads()
/libcore/luni/src/main/java/java/util/concurrent/locks/
DReentrantLock.java644 protected Collection<Thread> getQueuedThreads() { in getQueuedThreads() method in ReentrantLock
645 return sync.getQueuedThreads(); in getQueuedThreads()
DReentrantReadWriteLock.java1365 protected Collection<Thread> getQueuedThreads() { in getQueuedThreads() method in ReentrantReadWriteLock
1366 return sync.getQueuedThreads(); in getQueuedThreads()
DAbstractQueuedSynchronizer.java1533 public final Collection<Thread> getQueuedThreads() { in getQueuedThreads() method in AbstractQueuedSynchronizer
DAbstractQueuedLongSynchronizer.java1303 public final Collection<Thread> getQueuedThreads() { in getQueuedThreads() method in AbstractQueuedLongSynchronizer