Home
last modified time | relevance | path

Searched refs:finishLatch (Results 1 – 8 of 8) sorted by relevance

/external/grpc-grpc-java/interop-testing/src/test/java/io/grpc/testing/integration/
DMoreInProcessTest.java104 final CountDownLatch finishLatch = new CountDownLatch(1); in asyncClientStreaming_serverResponsePriorToRequest() local
118 finishLatch.countDown(); in asyncClientStreaming_serverResponsePriorToRequest()
123 finishLatch.countDown(); in asyncClientStreaming_serverResponsePriorToRequest()
130 assertTrue(finishLatch.await(900, TimeUnit.MILLISECONDS)); in asyncClientStreaming_serverResponsePriorToRequest()
163 final CountDownLatch finishLatch = new CountDownLatch(1); in asyncClientStreaming_serverErrorPriorToRequest() local
177 finishLatch.countDown(); in asyncClientStreaming_serverErrorPriorToRequest()
182 finishLatch.countDown(); in asyncClientStreaming_serverErrorPriorToRequest()
189 assertTrue(finishLatch.await(900, TimeUnit.MILLISECONDS)); in asyncClientStreaming_serverErrorPriorToRequest()
222 final CountDownLatch finishLatch = new CountDownLatch(1); in asyncClientStreaming_erroneousServiceImpl() local
236 finishLatch.countDown(); in asyncClientStreaming_erroneousServiceImpl()
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/scheduling/
DCoroutineSchedulerTest.kt51 val finishLatch = CountDownLatch(2) in <lambda>() constant
56 finishLatch.countDown() in <lambda>()
61 finishLatch.countDown() in <lambda>()
66 finishLatch.await() in <lambda>()
75 val finishLatch = CountDownLatch(2) in <lambda>() constant
80 finishLatch.countDown() in <lambda>()
85 finishLatch.countDown() in <lambda>()
90 finishLatch.await() in <lambda>()
DCoroutineSchedulerStressTest.kt31 private val finishLatch = CountDownLatch(1) constant in kotlinx.coroutines.scheduling.CoroutineSchedulerStressTest
51 finishLatch.await() in testInternalTasksSubmissionProgress()
79 finishLatch.await() in testStealingFromNonProgressing()
82 finishLatch.await() in testStealingFromNonProgressing()
92 finishLatch.countDown() in processTask()
/external/grpc-grpc-java/examples/src/main/java/io/grpc/examples/routeguide/
DRouteGuideClient.java136 final CountDownLatch finishLatch = new CountDownLatch(1); in recordRoute() local
154 finishLatch.countDown(); in recordRoute()
160 finishLatch.countDown(); in recordRoute()
175 if (finishLatch.getCount() == 0) { in recordRoute()
190 if (!finishLatch.await(1, TimeUnit.MINUTES)) { in recordRoute()
201 final CountDownLatch finishLatch = new CountDownLatch(1); in routeChat() local
219 finishLatch.countDown(); in routeChat()
225 finishLatch.countDown(); in routeChat()
248 return finishLatch; in routeChat()
276 CountDownLatch finishLatch = client.routeChat(); in main() local
[all …]
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/
DUnconfinedConcurrentStressTest.kt26 val finishLatch = CountDownLatch(threads) in <lambda>() constant
43 finishLatch.countDown() in <lambda>()
48 finishLatch.await() in <lambda>()
/external/grpc-grpc-java/examples/android/routeguide/app/src/main/java/io/grpc/routeguideexample/
DRouteGuideActivity.java281 final CountDownLatch finishLatch = new CountDownLatch(1); in recordRoute() local
299 finishLatch.countDown(); in recordRoute()
305 finishLatch.countDown(); in recordRoute()
324 if (finishLatch.getCount() == 0) { in recordRoute()
339 if (!finishLatch.await(1, TimeUnit.MINUTES)) { in recordRoute()
368 final CountDownLatch finishLatch = new CountDownLatch(1); in routeChat() local
385 finishLatch.countDown(); in routeChat()
391 finishLatch.countDown(); in routeChat()
421 if (!finishLatch.await(1, TimeUnit.MINUTES)) { in routeChat()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DCycleDetectingLockFactoryTest.java484 final CountDownLatch finishLatch = new CountDownLatch(1); field in CycleDetectingLockFactoryTest.LockingThread
496 finishLatch.await(1, TimeUnit.MINUTES); in run()
509 finishLatch.countDown(); in releaseLockAndFinish()
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DCycleDetectingLockFactoryTest.java484 final CountDownLatch finishLatch = new CountDownLatch(1); field in CycleDetectingLockFactoryTest.LockingThread
496 finishLatch.await(1, TimeUnit.MINUTES); in run()
509 finishLatch.countDown(); in releaseLockAndFinish()