Home
last modified time | relevance | path

Searched refs:countDown (Results 1 – 25 of 63) sorted by relevance

123

/libcore/jsr166-tests/src/test/java/jsr166/
DCountDownLatchTest.java45 l.countDown(); in testGetCount()
55 l.countDown(); in testCountDown()
57 l.countDown(); in testCountDown()
71 pleaseCountDown.countDown(); in testAwait()
78 l.countDown(); in testAwait()
81 l.countDown(); in testAwait()
96 pleaseCountDown.countDown(); in testTimedAwait()
103 l.countDown(); in testTimedAwait()
106 l.countDown(); in testTimedAwait()
126 pleaseInterrupt.countDown(); in testAwait_Interruptible()
[all …]
DExchangerTest.java80 threadStarted.countDown(); in testExchange_InterruptedException()
97 threadStarted.countDown(); in testTimedExchange_InterruptedException()
134 exchanged.countDown(); in testReplacementAfterExchange()
140 exchanged.countDown(); in testReplacementAfterExchange()
153 interrupted.countDown(); in testReplacementAfterExchange()
DScheduledExecutorTest.java57 public void realRun() { done.countDown(); }}; in testExecute()
73 done.countDown(); in testSchedule1()
94 done.countDown(); in testSchedule3()
114 done.countDown(); in testSchedule4()
136 done.countDown(); in testSchedule5()
166 public void realRun() { done.countDown(); }}; in testFixedRateSequence()
211 done.countDown(); in testFixedDelaySequence()
347 threadStarted.countDown(); in testGetActiveCount()
369 threadStarted.countDown(); in testGetCompletedTaskCount()
372 threadDone.countDown(); in testGetCompletedTaskCount()
[all …]
DScheduledExecutorSubclassTest.java114 public void realRun() { done.countDown(); }}; in testExecute()
130 done.countDown(); in testSchedule1()
150 done.countDown(); in testSchedule3()
170 done.countDown(); in testSchedule4()
192 done.countDown(); in testSchedule5()
222 public void realRun() { done.countDown(); }}; in testFixedRateSequence()
267 done.countDown(); in testFixedDelaySequence()
403 threadStarted.countDown(); in testGetActiveCount()
425 threadStarted.countDown(); in testGetCompletedTaskCount()
428 threadDone.countDown(); in testGetCompletedTaskCount()
[all …]
DFutureTaskTest.java420 pleaseCancel.countDown(); in testCancelInterrupt()
451 pleaseCancel.countDown(); in testCancelInterrupt_ThrowsSecurityException()
478 cancelled.countDown(); in testCancelInterrupt_ThrowsSecurityException()
494 pleaseCancel.countDown(); in testCancelInterrupt_taskFails()
524 pleaseCancel.countDown(); in testCancelNoInterrupt()
534 cancelled.countDown(); in testCancelNoInterrupt()
557 pleaseRun.countDown(); in testGetRun()
563 pleaseRun.countDown(); in testGetRun()
596 pleaseSet.countDown(); in testGetSet()
602 pleaseSet.countDown(); in testGetSet()
[all …]
DThreadPoolExecutorTest.java59 beforeCalled.countDown(); in beforeExecute()
62 afterCalled.countDown(); in afterExecute()
65 terminatedCalled.countDown(); in terminated()
98 public void realRun() { done.countDown(); }}; in testExecute()
119 threadStarted.countDown(); in testGetActiveCount()
192 threadStarted.countDown(); in testGetCompletedTaskCount()
195 threadDone.countDown(); in testGetCompletedTaskCount()
199 threadProceed.countDown(); in testGetCompletedTaskCount()
347 threadsStarted.countDown(); in testGetLargestPoolSize()
390 threadStarted.countDown(); in testGetPoolSize()
[all …]
DLockSupportTest.java120 pleaseUnpark.countDown(); in testParkBeforeUnpark()
155 pleaseUnpark.countDown(); in testParkAfterUnpark()
192 pleaseInterrupt.countDown(); in testParkBeforeInterrupt()
231 pleaseInterrupt.countDown(); in testParkAfterInterrupt()
302 started.countDown(); in testGetBlocker()
DCyclicBarrierTest.java134 pleaseInterrupt.countDown(); in testAwait1_Interrupted_BrokenBarrier()
139 pleaseInterrupt.countDown(); in testAwait1_Interrupted_BrokenBarrier()
160 pleaseInterrupt.countDown(); in testAwait2_Interrupted_BrokenBarrier()
165 pleaseInterrupt.countDown(); in testAwait2_Interrupted_BrokenBarrier()
260 pleaseReset.countDown(); in testReset_BrokenBarrier()
265 pleaseReset.countDown(); in testReset_BrokenBarrier()
DPhaserTest.java473 pleaseInterrupt.countDown();
490 pleaseInterrupt.countDown();
523 pleaseArrive.countDown();
552 pleaseArrive.countDown();
580 pleaseArrive.countDown();
606 pleaseInterrupt.countDown();
658 latch.countDown();
666 latch.countDown();
732 pleaseForceTermination.countDown();
776 pleaseArrive.countDown();
DReentrantLockTest.java594 locked.countDown(); in testAwait()
749 pleaseSignal.countDown(); in testHasWaiters()
783 locked1.countDown(); in testGetWaitQueueLength()
793 locked2.countDown(); in testGetWaitQueueLength()
840 locked1.countDown(); in testGetWaitingThreads()
849 locked2.countDown(); in testGetWaitingThreads()
900 pleaseInterrupt.countDown(); in testAwaitUninterruptibly()
911 pleaseInterrupt.countDown(); in testAwaitUninterruptibly()
954 pleaseInterrupt.countDown(); in testInterruptible()
990 pleaseSignal.countDown(); in testSignalAll()
[all …]
DLinkedBlockingDequeTest.java592 pleaseInterrupt.countDown(); in testBlockingPut()
620 pleaseTake.countDown(); in testPutWithTake()
623 pleaseInterrupt.countDown(); in testPutWithTake()
655 pleaseInterrupt.countDown(); in testTimedOffer()
697 pleaseInterrupt.countDown(); in testBlockingTake()
762 aboutToWait.countDown(); in testInterruptedTimedPoll()
822 pleaseInterrupt.countDown(); in testBlockingPutFirst()
850 pleaseTake.countDown(); in testPutFirstWithTake()
853 pleaseInterrupt.countDown(); in testPutFirstWithTake()
885 pleaseInterrupt.countDown(); in testTimedOfferFirst()
[all …]
DCollection8Test.java86 threadsStarted.countDown(); in testForEachConcurrentStressTest()
90 threadsStarted.countDown(); in testForEachConcurrentStressTest()
DExecutorsTest.java214 proceed.countDown(); in testNewSingleThreadScheduledExecutor()
238 proceed.countDown(); in testNewScheduledThreadPool()
264 proceed.countDown(); in testUnconfigurableScheduledExecutorService()
327 done.countDown(); in testDefaultThreadFactory()
364 done.countDown(); in testPrivilegedThreadFactory()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DCountDownLatchTest.java68 l.countDown(); in testGetCount()
78 l.countDown(); in testCountDown()
80 l.countDown(); in testCountDown()
94 pleaseCountDown.countDown(); in testAwait()
101 l.countDown(); in testAwait()
104 l.countDown(); in testAwait()
119 pleaseCountDown.countDown(); in testTimedAwait()
126 l.countDown(); in testTimedAwait()
129 l.countDown(); in testTimedAwait()
149 pleaseInterrupt.countDown(); in testAwait_Interruptible()
[all …]
DExchangerTest.java103 threadStarted.countDown(); in testExchange_InterruptedException()
120 threadStarted.countDown(); in testTimedExchange_InterruptedException()
157 exchanged.countDown(); in testReplacementAfterExchange()
163 exchanged.countDown(); in testReplacementAfterExchange()
176 interrupted.countDown(); in testReplacementAfterExchange()
DScheduledExecutorTest.java79 public void realRun() { done.countDown(); }}; in testExecute()
95 done.countDown(); in testSchedule1()
116 done.countDown(); in testSchedule3()
136 done.countDown(); in testSchedule4()
158 done.countDown(); in testSchedule5()
188 public void realRun() { done.countDown(); }}; in testFixedRateSequence()
233 done.countDown(); in testFixedDelaySequence()
369 threadStarted.countDown(); in testGetActiveCount()
391 threadStarted.countDown(); in testGetCompletedTaskCount()
394 threadDone.countDown(); in testGetCompletedTaskCount()
[all …]
DLockSupportTest.java144 pleaseUnpark.countDown(); in testParkBeforeUnpark()
179 pleaseUnpark.countDown(); in testParkAfterUnpark()
216 pleaseInterrupt.countDown(); in testParkBeforeInterrupt()
255 pleaseInterrupt.countDown(); in testParkAfterInterrupt()
326 started.countDown(); in testGetBlocker()
DCyclicBarrierTest.java155 pleaseInterrupt.countDown(); in testAwait1_Interrupted_BrokenBarrier()
160 pleaseInterrupt.countDown(); in testAwait1_Interrupted_BrokenBarrier()
181 pleaseInterrupt.countDown(); in testAwait2_Interrupted_BrokenBarrier()
186 pleaseInterrupt.countDown(); in testAwait2_Interrupted_BrokenBarrier()
281 pleaseReset.countDown(); in testReset_BrokenBarrier()
286 pleaseReset.countDown(); in testReset_BrokenBarrier()
DPhaserTest.java497 pleaseInterrupt.countDown();
514 pleaseInterrupt.countDown();
547 pleaseArrive.countDown();
576 pleaseArrive.countDown();
604 pleaseArrive.countDown();
630 pleaseInterrupt.countDown();
682 latch.countDown();
690 latch.countDown();
756 pleaseForceTermination.countDown();
800 pleaseArrive.countDown();
DReentrantLockTest.java617 locked.countDown(); in testAwait()
772 pleaseSignal.countDown(); in testHasWaiters()
806 locked1.countDown(); in testGetWaitQueueLength()
816 locked2.countDown(); in testGetWaitQueueLength()
863 locked1.countDown(); in testGetWaitingThreads()
872 locked2.countDown(); in testGetWaitingThreads()
923 pleaseInterrupt.countDown(); in testAwaitUninterruptibly()
934 pleaseInterrupt.countDown(); in testAwaitUninterruptibly()
977 pleaseInterrupt.countDown(); in testInterruptible()
1013 pleaseSignal.countDown(); in testSignalAll()
[all …]
DLinkedBlockingDequeTest.java626 pleaseInterrupt.countDown(); in testBlockingPut()
654 pleaseTake.countDown(); in testPutWithTake()
657 pleaseInterrupt.countDown(); in testPutWithTake()
689 pleaseInterrupt.countDown(); in testTimedOffer()
731 pleaseInterrupt.countDown(); in testBlockingTake()
796 aboutToWait.countDown(); in testInterruptedTimedPoll()
856 pleaseInterrupt.countDown(); in testBlockingPutFirst()
884 pleaseTake.countDown(); in testPutFirstWithTake()
887 pleaseInterrupt.countDown(); in testPutFirstWithTake()
919 pleaseInterrupt.countDown(); in testTimedOfferFirst()
[all …]
/libcore/luni/src/test/java/libcore/java/net/
DServerSocketConcurrentCloseTest.java76 threadFinishedLatch.countDown(); in testImplAccept_detectsClosedState()
199 startLatch.countDown(); in run()
233 startLatch.countDown(); in run()
240 shutdownLatch.countDown(); in run()
DSocketTimeoutTest.java123 threadStarted.countDown(); in testSocketWriteNeverTimeouts()
127 writeCompleted.countDown(); in testSocketWriteNeverTimeouts()
130 writeCompleted.countDown(); in testSocketWriteNeverTimeouts()
/libcore/ojluni/src/main/java/sun/nio/ch/
DPendingFuture.java142 latch.countDown(); in setResult()
160 latch.countDown(); in setFailure()
251 latch.countDown(); in cancel()
/libcore/ojluni/src/main/java/java/util/concurrent/
DCountDownLatch.java291 public void countDown() { in countDown() method in CountDownLatch

123