Home
last modified time | relevance | path

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

/libcore/jsr166-tests/src/test/java/jsr166/
DExchangerTest.java77 final CountDownLatch threadStarted = new CountDownLatch(1); in testExchange_InterruptedException() local
80 threadStarted.countDown(); in testExchange_InterruptedException()
84 await(threadStarted); in testExchange_InterruptedException()
94 final CountDownLatch threadStarted = new CountDownLatch(1); in testTimedExchange_InterruptedException() local
97 threadStarted.countDown(); in testTimedExchange_InterruptedException()
101 await(threadStarted); in testTimedExchange_InterruptedException()
DThreadPoolExecutorTest.java115 final CountDownLatch threadStarted = new CountDownLatch(1); in testGetActiveCount() local
119 threadStarted.countDown(); in testGetActiveCount()
123 await(threadStarted); in testGetActiveCount()
186 final CountDownLatch threadStarted = new CountDownLatch(1); in testGetCompletedTaskCount() local
192 threadStarted.countDown(); in testGetCompletedTaskCount()
197 await(threadStarted); in testGetCompletedTaskCount()
387 final CountDownLatch threadStarted = new CountDownLatch(1); in testGetPoolSize() local
390 threadStarted.countDown(); in testGetPoolSize()
394 await(threadStarted); in testGetPoolSize()
410 final CountDownLatch threadStarted = new CountDownLatch(1); in testGetTaskCount() local
[all …]
DThreadPoolExecutorSubclassTest.java262 final CountDownLatch threadStarted = new CountDownLatch(1); in testGetActiveCount() local
266 threadStarted.countDown(); in testGetActiveCount()
270 await(threadStarted); in testGetActiveCount()
333 final CountDownLatch threadStarted = new CountDownLatch(1); in testGetCompletedTaskCount() local
339 threadStarted.countDown(); in testGetCompletedTaskCount()
344 await(threadStarted); in testGetCompletedTaskCount()
534 final CountDownLatch threadStarted = new CountDownLatch(1); in testGetPoolSize() local
537 threadStarted.countDown(); in testGetPoolSize()
541 await(threadStarted); in testGetPoolSize()
557 final CountDownLatch threadStarted = new CountDownLatch(1); in testGetTaskCount() local
[all …]
DScheduledExecutorTest.java343 final CountDownLatch threadStarted = new CountDownLatch(1); in testGetActiveCount() local
347 threadStarted.countDown(); in testGetActiveCount()
351 await(threadStarted); in testGetActiveCount()
363 final CountDownLatch threadStarted = new CountDownLatch(1); in testGetCompletedTaskCount() local
369 threadStarted.countDown(); in testGetCompletedTaskCount()
374 await(threadStarted); in testGetCompletedTaskCount()
427 final CountDownLatch threadStarted = new CountDownLatch(1); in testGetPoolSize() local
433 threadStarted.countDown(); in testGetPoolSize()
437 await(threadStarted); in testGetPoolSize()
451 final CountDownLatch threadStarted = new CountDownLatch(1); in testGetTaskCount() local
[all …]
DScheduledExecutorSubclassTest.java399 final CountDownLatch threadStarted = new CountDownLatch(1); in testGetActiveCount() local
403 threadStarted.countDown(); in testGetActiveCount()
407 await(threadStarted); in testGetActiveCount()
419 final CountDownLatch threadStarted = new CountDownLatch(1); in testGetCompletedTaskCount() local
425 threadStarted.countDown(); in testGetCompletedTaskCount()
430 await(threadStarted); in testGetCompletedTaskCount()
485 final CountDownLatch threadStarted = new CountDownLatch(1); in testGetPoolSize() local
489 threadStarted.countDown(); in testGetPoolSize()
493 await(threadStarted); in testGetPoolSize()
507 final CountDownLatch threadStarted = new CountDownLatch(1); in testGetTaskCount() local
[all …]
DBlockingQueueTest.java262 final CountDownLatch threadStarted = new CountDownLatch(1);
265 threadStarted.countDown();
273 await(threadStarted);
303 final CountDownLatch threadStarted = new CountDownLatch(1);
306 threadStarted.countDown();
314 await(threadStarted);
DLinkedTransferQueueTest.java741 final CountDownLatch threadStarted = new CountDownLatch(1); in testWaitingConsumer() local
745 threadStarted.countDown(); in testWaitingConsumer()
753 threadStarted.await(); in testWaitingConsumer()
785 final CountDownLatch threadStarted = new CountDownLatch(1); in testTransfer2() local
789 threadStarted.countDown(); in testTransfer2()
794 threadStarted.await(); in testTransfer2()
DLinkedBlockingDequeTest.java913 final CountDownLatch threadStarted = new CountDownLatch(1); in testTakeFirstFromEmptyBlocksInterruptibly() local
916 threadStarted.countDown(); in testTakeFirstFromEmptyBlocksInterruptibly()
924 await(threadStarted); in testTakeFirstFromEmptyBlocksInterruptibly()
954 final CountDownLatch threadStarted = new CountDownLatch(1); in testTakeLastFromEmptyBlocksInterruptibly() local
957 threadStarted.countDown(); in testTakeLastFromEmptyBlocksInterruptibly()
965 await(threadStarted); in testTakeLastFromEmptyBlocksInterruptibly()
DAbstractQueuedLongSynchronizerTest.java591 final BooleanLatch threadStarted = new BooleanLatch(); in testAcquireInterruptibly() local
595 assertTrue(threadStarted.releaseShared(0)); in testAcquireInterruptibly()
599 threadStarted.acquireShared(0); in testAcquireInterruptibly()
DAbstractQueuedSynchronizerTest.java594 final BooleanLatch threadStarted = new BooleanLatch(); in testAcquireInterruptibly() local
598 assertTrue(threadStarted.releaseShared(0)); in testAcquireInterruptibly()
602 threadStarted.acquireShared(0); in testAcquireInterruptibly()
/libcore/luni/src/test/java/libcore/java/net/
DSocketTimeoutTest.java120 CountDownLatch threadStarted = new CountDownLatch(1); in testSocketWriteNeverTimeouts() local
123 threadStarted.countDown(); in testSocketWriteNeverTimeouts()
137 assertTrue(threadStarted.await(500, TimeUnit.MILLISECONDS)); in testSocketWriteNeverTimeouts()