Searched refs:nThreads (Results 1 – 8 of 8) sorted by relevance
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | ThreadPool.java | 126 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()
|
D | LinuxAsynchronousChannelProvider.java | 54 … public AsynchronousChannelGroup openAsynchronousChannelGroup(int nThreads, ThreadFactory factory) in openAsynchronousChannelGroup() argument 57 return new EPollPort(this, ThreadPool.create(nThreads, factory)).start(); in openAsynchronousChannelGroup()
|
D | EPollPort.java | 159 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/ |
D | AsynchronousChannelGroup.java | 186 public static AsynchronousChannelGroup withFixedThreadPool(int nThreads, in withFixedThreadPool() argument 191 .openAsynchronousChannelGroup(nThreads, threadFactory); in withFixedThreadPool()
|
/libcore/ojluni/src/test/java/util/GregorianCalendar/ |
D | GregorianCalendarTest.java | 40 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/ |
D | Executors.java | 96 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/ |
D | AsynchronousChannelProvider.java | 188 openAsynchronousChannelGroup(int nThreads, ThreadFactory threadFactory) throws IOException;
|
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/ |
D | Executors.java | 47 public static java.util.concurrent.ExecutorService newFixedThreadPool(int nThreads) { in newFixedThreadPool() argument 60 int nThreads, java.util.concurrent.ThreadFactory threadFactory) { in newFixedThreadPool() argument
|