Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/sun/nio/ch/
DThreadPool.java126 static ThreadPool create(int nThreads, ThreadFactory factory) { in create() argument
127 if (nThreads <= 0) in create()
129 ExecutorService executor = Executors.newFixedThreadPool(nThreads, factory); in create()
130 return new ThreadPool(executor, true, nThreads); in create()
DLinuxAsynchronousChannelProvider.java54 … public AsynchronousChannelGroup openAsynchronousChannelGroup(int nThreads, ThreadFactory factory) in openAsynchronousChannelGroup() argument
57 return new EPollPort(this, ThreadPool.create(nThreads, factory)).start(); in openAsynchronousChannelGroup()
DEPollPort.java159 int nThreads = threadCount(); in shutdownHandlerTasks() local
160 if (nThreads == 0) { in shutdownHandlerTasks()
164 while (nThreads-- > 0) { in shutdownHandlerTasks()
/libcore/ojluni/src/main/java/java/nio/channels/
DAsynchronousChannelGroup.java186 public static AsynchronousChannelGroup withFixedThreadPool(int nThreads, in withFixedThreadPool() argument
191 .openAsynchronousChannelGroup(nThreads, threadFactory); in withFixedThreadPool()
/libcore/ojluni/src/test/java/util/GregorianCalendar/
DGregorianCalendarTest.java40 static int nThreads; field in GregorianCalendarTest
213 nThreads++; in incrementCounter()
217 nThreads--; in decrementCounter()
221 return nThreads; in getCounter()
/libcore/ojluni/src/main/java/java/util/concurrent/
DExecutors.java96 public static ExecutorService newFixedThreadPool(int nThreads) { in newFixedThreadPool() argument
97 return new ThreadPoolExecutor(nThreads, nThreads, in newFixedThreadPool()
159 public static ExecutorService newFixedThreadPool(int nThreads, ThreadFactory threadFactory) { in newFixedThreadPool() argument
160 return new ThreadPoolExecutor(nThreads, nThreads, in newFixedThreadPool()
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DAsynchronousChannelProvider.java188 openAsynchronousChannelGroup(int nThreads, ThreadFactory threadFactory) throws IOException;
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DExecutors.java47 public static java.util.concurrent.ExecutorService newFixedThreadPool(int nThreads) { in newFixedThreadPool() argument
60 int nThreads, java.util.concurrent.ThreadFactory threadFactory) { in newFixedThreadPool() argument