Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/java/util/concurrent/
DReentrantReadWriteLockTest.java79 private void waitForQueuedThread(DefaultReentrantReadWriteLock lock, Thread thread) { in waitForQueuedThread() method in ReentrantReadWriteLockTest
106 waitForQueuedThread(lock, thread1); in testGetQueuedReaderThreads()
109 waitForQueuedThread(lock, thread2); in testGetQueuedReaderThreads()
125 waitForQueuedThread(lock, thread1); in testGetQueuedWriterThreads()
128 waitForQueuedThread(lock, thread2); in testGetQueuedWriterThreads()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DSemaphoreTest.java100 void waitForQueuedThread(PublicSemaphore s, Thread t) { in waitForQueuedThread() method in SemaphoreTest
290 waitForQueuedThread(s, t); in testInterruptible()
293 waitForQueuedThread(s, t); in testInterruptible()
328 waitForQueuedThread(s, t1); in testUninterruptible()
329 waitForQueuedThread(s, t2); in testUninterruptible()
351 waitForQueuedThread(lock, t1); in testHasQueuedThreads()
354 waitForQueuedThread(lock, t2); in testHasQueuedThreads()
374 waitForQueuedThread(lock, t1); in testGetQueueLength()
377 waitForQueuedThread(lock, t2); in testGetQueueLength()
398 waitForQueuedThread(lock, t1); in testGetQueuedThreads()
[all …]
DAbstractQueuedSynchronizerTest.java164 void waitForQueuedThread(AbstractQueuedSynchronizer sync, Thread t) { in waitForQueuedThread() method in AbstractQueuedSynchronizerTest
342 waitForQueuedThread(sync, t1); in testHasQueuedThreads()
345 waitForQueuedThread(sync, t2); in testHasQueuedThreads()
377 waitForQueuedThread(sync, t1); in testIsQueued()
381 waitForQueuedThread(sync, t2); in testIsQueued()
402 waitForQueuedThread(sync, t1); in testGetFirstQueuedThread()
405 waitForQueuedThread(sync, t2); in testGetFirstQueuedThread()
424 waitForQueuedThread(sync, t1); in testHasContended()
427 waitForQueuedThread(sync, t2); in testHasContended()
448 waitForQueuedThread(sync, t1); in testGetQueuedThreads()
[all …]
DAbstractQueuedLongSynchronizerTest.java160 void waitForQueuedThread(AbstractQueuedLongSynchronizer sync, in waitForQueuedThread() method in AbstractQueuedLongSynchronizerTest
339 waitForQueuedThread(sync, t1); in testHasQueuedThreads()
342 waitForQueuedThread(sync, t2); in testHasQueuedThreads()
374 waitForQueuedThread(sync, t1); in testIsQueued()
378 waitForQueuedThread(sync, t2); in testIsQueued()
399 waitForQueuedThread(sync, t1); in testGetFirstQueuedThread()
402 waitForQueuedThread(sync, t2); in testGetFirstQueuedThread()
421 waitForQueuedThread(sync, t1); in testHasContended()
424 waitForQueuedThread(sync, t2); in testHasContended()
445 waitForQueuedThread(sync, t1); in testGetQueuedThreads()
[all …]
DReentrantReadWriteLockTest.java114 void waitForQueuedThread(PublicReentrantReadWriteLock lock, Thread t) { in waitForQueuedThread() method in ReentrantReadWriteLockTest
347 waitForQueuedThread(lock, t); in testWriteLockInterruptibly_Interruptible()
367 waitForQueuedThread(lock, t); in testWriteTryLock_Interruptible()
387 waitForQueuedThread(lock, t); in testReadLockInterruptibly_Interruptible()
407 waitForQueuedThread(lock, t); in testReadTryLock_Interruptible()
503 waitForQueuedThread(lock, t); in testWriteAfterReadLock()
537 waitForQueuedThread(lock, t2); in testWriteAfterMultipleReadLocks()
565 waitForQueuedThread(lock, t1); in testReaderWriterReaderFairFifo()
575 waitForQueuedThread(lock, t2); in testReaderWriterReaderFairFifo()
605 waitForQueuedThread(lock, t1); in testReadAfterWriteLock()
[all …]
DReentrantLockTest.java112 void waitForQueuedThread(PublicReentrantLock lock, Thread t) { in waitForQueuedThread() method in ReentrantLockTest
275 waitForQueuedThread(lock, t1); in testHasQueuedThreads()
278 waitForQueuedThread(lock, t2); in testHasQueuedThreads()
300 waitForQueuedThread(lock, t1); in testGetQueueLength()
303 waitForQueuedThread(lock, t2); in testGetQueueLength()
339 waitForQueuedThread(lock, t1); in testHasQueuedThread()
343 waitForQueuedThread(lock, t2); in testHasQueuedThread()
369 waitForQueuedThread(lock, t1); in testGetQueuedThreads()
373 waitForQueuedThread(lock, t2); in testGetQueuedThreads()
400 waitForQueuedThread(lock, t); in testTryLock_Interruptible()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DSemaphoreTest.java77 void waitForQueuedThread(PublicSemaphore s, Thread t) { in waitForQueuedThread() method in SemaphoreTest
267 waitForQueuedThread(s, t); in testInterruptible()
270 waitForQueuedThread(s, t); in testInterruptible()
305 waitForQueuedThread(s, t1); in testUninterruptible()
306 waitForQueuedThread(s, t2); in testUninterruptible()
328 waitForQueuedThread(lock, t1); in testHasQueuedThreads()
331 waitForQueuedThread(lock, t2); in testHasQueuedThreads()
351 waitForQueuedThread(lock, t1); in testGetQueueLength()
354 waitForQueuedThread(lock, t2); in testGetQueueLength()
375 waitForQueuedThread(lock, t1); in testGetQueuedThreads()
[all …]
DAbstractQueuedSynchronizerTest.java141 void waitForQueuedThread(AbstractQueuedSynchronizer sync, Thread t) { in waitForQueuedThread() method in AbstractQueuedSynchronizerTest
314 waitForQueuedThread(sync, t1); in testHasQueuedThreads()
317 waitForQueuedThread(sync, t2); in testHasQueuedThreads()
349 waitForQueuedThread(sync, t1); in testIsQueued()
353 waitForQueuedThread(sync, t2); in testIsQueued()
374 waitForQueuedThread(sync, t1); in testGetFirstQueuedThread()
377 waitForQueuedThread(sync, t2); in testGetFirstQueuedThread()
396 waitForQueuedThread(sync, t1); in testHasContended()
399 waitForQueuedThread(sync, t2); in testHasContended()
420 waitForQueuedThread(sync, t1); in testGetQueuedThreads()
[all …]
DAbstractQueuedLongSynchronizerTest.java137 void waitForQueuedThread(AbstractQueuedLongSynchronizer sync, in waitForQueuedThread() method in AbstractQueuedLongSynchronizerTest
311 waitForQueuedThread(sync, t1); in testHasQueuedThreads()
314 waitForQueuedThread(sync, t2); in testHasQueuedThreads()
346 waitForQueuedThread(sync, t1); in testIsQueued()
350 waitForQueuedThread(sync, t2); in testIsQueued()
371 waitForQueuedThread(sync, t1); in testGetFirstQueuedThread()
374 waitForQueuedThread(sync, t2); in testGetFirstQueuedThread()
393 waitForQueuedThread(sync, t1); in testHasContended()
396 waitForQueuedThread(sync, t2); in testHasContended()
417 waitForQueuedThread(sync, t1); in testGetQueuedThreads()
[all …]
DReentrantReadWriteLockTest.java91 void waitForQueuedThread(PublicReentrantReadWriteLock lock, Thread t) { in waitForQueuedThread() method in ReentrantReadWriteLockTest
324 waitForQueuedThread(lock, t); in testWriteLockInterruptibly_Interruptible()
344 waitForQueuedThread(lock, t); in testWriteTryLock_Interruptible()
364 waitForQueuedThread(lock, t); in testReadLockInterruptibly_Interruptible()
384 waitForQueuedThread(lock, t); in testReadTryLock_Interruptible()
480 waitForQueuedThread(lock, t); in testWriteAfterReadLock()
514 waitForQueuedThread(lock, t2); in testWriteAfterMultipleReadLocks()
542 waitForQueuedThread(lock, t1); in testReaderWriterReaderFairFifo()
552 waitForQueuedThread(lock, t2); in testReaderWriterReaderFairFifo()
582 waitForQueuedThread(lock, t1); in testReadAfterWriteLock()
[all …]
DReentrantLockTest.java89 void waitForQueuedThread(PublicReentrantLock lock, Thread t) { in waitForQueuedThread() method in ReentrantLockTest
252 waitForQueuedThread(lock, t1); in testHasQueuedThreads()
255 waitForQueuedThread(lock, t2); in testHasQueuedThreads()
277 waitForQueuedThread(lock, t1); in testGetQueueLength()
280 waitForQueuedThread(lock, t2); in testGetQueueLength()
316 waitForQueuedThread(lock, t1); in testHasQueuedThread()
320 waitForQueuedThread(lock, t2); in testHasQueuedThread()
346 waitForQueuedThread(lock, t1); in testGetQueuedThreads()
350 waitForQueuedThread(lock, t2); in testGetQueuedThreads()
377 waitForQueuedThread(lock, t); in testTryLock_Interruptible()
[all …]