Home | History | Annotate | Download | only in testing

Lines Matching defs:latch

43   protected CountDownLatch latch;
49 // Create a latch and a future that waits on the latch.
50 latch = new CountDownLatch(1);
51 future = createListenableFuture(Boolean.TRUE, null, latch);
58 latch.countDown();
62 * Constructs a listenable future with a value available after the latch
94 latch.countDown();
113 // The task thread waits for the latch, so we expect a timeout here.
120 latch.countDown();
160 latch.countDown();
184 // No success latch count down.
197 latch.countDown();
221 // Right in the middle start up a thread to close the latch.
226 latch.countDown();
240 // Wait for the listener latch to complete.