Home
last modified time | relevance | path

Searched refs:nThreads (Results 1 – 7 of 7) 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.java181 public static AsynchronousChannelGroup withFixedThreadPool(int nThreads, in withFixedThreadPool() argument
186 .openAsynchronousChannelGroup(nThreads, threadFactory); in withFixedThreadPool()
/libcore/ojluni/src/main/java/java/util/concurrent/
DExecutors.java95 public static ExecutorService newFixedThreadPool(int nThreads) { in newFixedThreadPool() argument
96 return new ThreadPoolExecutor(nThreads, nThreads, in newFixedThreadPool()
158 public static ExecutorService newFixedThreadPool(int nThreads, ThreadFactory threadFactory) { in newFixedThreadPool() argument
159 return new ThreadPoolExecutor(nThreads, nThreads, in newFixedThreadPool()
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DAsynchronousChannelProvider.java187 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