Home
last modified time | relevance | path

Searched refs:threadCount (Results 1 – 7 of 7) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DObjectTest.java145 final int threadCount = 20; in test_notify() local
147 for (int i = 0; i < threadCount; ++i) { in test_notify()
158 if (ready == threadCount) { in test_notify()
163 ready, threadCount); in test_notify()
164 for (int i = 1; i <= threadCount; ++i) { in test_notify()
215 final int threadCount = 20; in test_notifyAll() local
216 for (int i = 0; i < threadCount; ++i) { in test_notifyAll()
227 if (ready == threadCount) { in test_notifyAll()
233 assertEquals("Not all launched threads are waiting.", threadCount, ready); in test_notifyAll()
240 for (int i = 0; finished < threadCount && i < finishedWaitSecs; ++i) { in test_notifyAll()
[all …]
/libcore/ojluni/src/main/java/sun/nio/ch/
DAsynchronousChannelGroupImpl.java58 private final AtomicInteger threadCount = new AtomicInteger(); field in AsynchronousChannelGroupImpl
133 threadCount.incrementAndGet();
141 threadCount.incrementAndGet();
149 final int threadCount() {
150 return threadCount.get();
166 return threadCount.get();
171 return threadCount.decrementAndGet();
DEPollPort.java159 int nThreads = threadCount(); in shutdownHandlerTasks()
/libcore/jsr166-tests/src/test/java/jsr166/
DThreadLocalTest.java96 final int threadCount = 10; in testGenericITL() local
97 final int[] x = new int[threadCount]; in testGenericITL()
101 for (int i = 0; i < threadCount; i++) { in testGenericITL()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DThreadLocalTest.java120 final int threadCount = 10; in testGenericITL() local
121 final int[] x = new int[threadCount]; in testGenericITL()
125 for (int i = 0; i < threadCount; i++) { in testGenericITL()
/libcore/luni/src/test/java/libcore/java/lang/
DOldThreadGroupTest.java368 private List<MyThread> populateGroupsWithThreads(ThreadGroup group, int threadCount) { in populateGroupsWithThreads() argument
370 populateGroupsWithThreads(group, threadCount, result); in populateGroupsWithThreads()
374 private void populateGroupsWithThreads(ThreadGroup group, int threadCount, List<MyThread> out) { in populateGroupsWithThreads() argument
375 for (int i = 0; i < threadCount; i++) { in populateGroupsWithThreads()
376 MyThread thread = new MyThread(group, "MyThread " + i + " of " + threadCount); in populateGroupsWithThreads()
384 populateGroupsWithThreads(element, threadCount, out); in populateGroupsWithThreads()
/libcore/luni/src/test/java/libcore/java/lang/invoke/
DMethodHandleCombinersTest.java1677 final int threadCount = Runtime.getRuntime().availableProcessors() + 1; in invokeMultiThreaded() local
1678 final Thread threads [] = new Thread [threadCount]; in invokeMultiThreaded()
1681 for (int i = 0; i < threadCount; ++i) { in invokeMultiThreaded()
1698 for (int i = 0; i < threadCount; ++i) { in invokeMultiThreaded()