Home
last modified time | relevance | path

Searched refs:THREADS (Results 1 – 5 of 5) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DPhaserTest.java758 final int THREADS = 3;
759 final CountDownLatch pleaseArrive = new CountDownLatch(THREADS);
761 for (int i = 0; i < THREADS; i++)
771 while (phaser.getArrivedParties() < THREADS)
773 assertEquals(THREADS, phaser.getArrivedParties());
779 assertState(phaser, 0, THREADS + 1, 1);
783 assertState(phaser, 1, THREADS + 1, THREADS + 1);
DScheduledExecutorTest.java348 final int THREADS = 3; in testGetLargestPoolSize() local
349 final ThreadPoolExecutor p = new ScheduledThreadPoolExecutor(THREADS); in testGetLargestPoolSize()
350 final CountDownLatch threadsStarted = new CountDownLatch(THREADS); in testGetLargestPoolSize()
354 for (int i = 0; i < THREADS; i++) in testGetLargestPoolSize()
359 assertEquals(THREADS, p.getLargestPoolSize()); in testGetLargestPoolSize()
362 assertEquals(THREADS, p.getLargestPoolSize()); in testGetLargestPoolSize()
366 assertEquals(THREADS, p.getLargestPoolSize()); in testGetLargestPoolSize()
DScheduledExecutorSubclassTest.java398 final int THREADS = 3; in testGetLargestPoolSize() local
399 final ThreadPoolExecutor p = new CustomExecutor(THREADS); in testGetLargestPoolSize()
400 final CountDownLatch threadsStarted = new CountDownLatch(THREADS); in testGetLargestPoolSize()
404 for (int i = 0; i < THREADS; i++) in testGetLargestPoolSize()
409 assertEquals(THREADS, p.getLargestPoolSize()); in testGetLargestPoolSize()
412 assertEquals(THREADS, p.getLargestPoolSize()); in testGetLargestPoolSize()
416 assertEquals(THREADS, p.getLargestPoolSize()); in testGetLargestPoolSize()
DThreadPoolExecutorTest.java295 final int THREADS = 3; in testGetLargestPoolSize() local
297 new ThreadPoolExecutor(THREADS, THREADS, in testGetLargestPoolSize()
300 final CountDownLatch threadsStarted = new CountDownLatch(THREADS); in testGetLargestPoolSize()
304 for (int i = 0; i < THREADS; i++) in testGetLargestPoolSize()
309 assertEquals(THREADS, p.getLargestPoolSize()); in testGetLargestPoolSize()
312 assertEquals(THREADS, p.getLargestPoolSize()); in testGetLargestPoolSize()
316 assertEquals(THREADS, p.getLargestPoolSize()); in testGetLargestPoolSize()
DThreadPoolExecutorSubclassTest.java402 final int THREADS = 3; in testGetLargestPoolSize() local
404 new CustomTPE(THREADS, THREADS, in testGetLargestPoolSize()
407 final CountDownLatch threadsStarted = new CountDownLatch(THREADS); in testGetLargestPoolSize()
411 for (int i = 0; i < THREADS; i++) in testGetLargestPoolSize()
416 assertEquals(THREADS, p.getLargestPoolSize()); in testGetLargestPoolSize()
419 assertEquals(THREADS, p.getLargestPoolSize()); in testGetLargestPoolSize()
423 assertEquals(THREADS, p.getLargestPoolSize()); in testGetLargestPoolSize()