Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/java/lang/
DThreadGroup.java43 int numThreads; field in ThreadGroup
148 for (int i = 0; i < numThreads; i++) { in activeCount()
194 if (childrenThreads.length == numThreads) { in add()
196 System.arraycopy(childrenThreads, 0, newThreads, 0, numThreads); in add()
197 newThreads[numThreads++] = thread; in add()
200 childrenThreads[numThreads++] = thread; in add()
284 if (this.numThreads > 0) { in destroy()
321 if (isDaemon && !isDestroyed && numThreads == 0) { in destroyIfEmptyDaemon()
421 for (int i = enumeratingThreads ? numThreads : numGroups; --i >= 0;) { in enumerateGeneric()
491 for (int i = 0; i < numThreads; i++) { in interrupt()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
DOldThreadGroupTest.java112 int numThreads = initialThreadGroup.activeCount(); in test_enumerateLThreadArray() local
113 Thread[] listOfThreads = new Thread[numThreads]; in test_enumerateLThreadArray()
116 assertEquals(numThreads, countThread); in test_enumerateLThreadArray()
122 int numThreads = initialThreadGroup.activeCount(); in test_enumerateLThreadArrayLZtest_enumerateLThreadArrayLZ() local
123 Thread[] listOfThreads = new Thread[numThreads]; in test_enumerateLThreadArrayLZtest_enumerateLThreadArrayLZ()
126 assertEquals(numThreads, countThread); in test_enumerateLThreadArrayLZtest_enumerateLThreadArrayLZ()
129 assertEquals(numThreads, countThread); in test_enumerateLThreadArrayLZtest_enumerateLThreadArrayLZ()
139 assertEquals(numThreads, countThread); in test_enumerateLThreadArrayLZtest_enumerateLThreadArrayLZ()
156 assertEquals(numThreads + subThreadsCount, numThreads2); in test_enumerateLThreadArrayLZtest_enumerateLThreadArrayLZ()
176 assertEquals(numThreads, numThreads3); in test_enumerateLThreadArrayLZtest_enumerateLThreadArrayLZ()
/libcore/luni/src/test/java/tests/support/
DThreadPool.java32 public ThreadPool(int numThreads) { in ThreadPool() argument
39 for (int i = 0; i < numThreads; i++) { in ThreadPool()
/libcore/luni/src/test/java/tests/java/sql/
DMultiThreadAccessTest.java47 private static final int numThreads = 10; field in MultiThreadAccessTest
63 threadPool = new ThreadPool(numThreads); in setUp()
133 for (int i = 0; i < numThreads; i++) { in test_MultipleAccessToOneTable()
246 for (int i = 0; i < numThreads; i++) { in test_MultipleUpdatesInOneTables()
252 double expectedVal = id + numThreads; in test_MultipleUpdatesInOneTables()
/libcore/luni/src/test/java/tests/SQLite/
DDatabaseTest.java81 private static final int numThreads = 10; field in DatabaseTest
420 ThreadPool threadPool = new ThreadPool(numThreads); in testInterrupt()
536 ThreadPool threadPool = new ThreadPool(numThreads); in testBusy_handler()
660 ThreadPool threadPool = new ThreadPool(numThreads); in testBusy_timeout()
721 threadPool = new ThreadPool(numThreads); in testBusy_timeout()