Home
last modified time | relevance | path

Searched refs:ThreadPool (Results 1 – 12 of 12) sorted by relevance

/libcore/ojluni/src/main/java/sun/nio/ch/
DThreadPool.java37 public class ThreadPool { class
52 private ThreadPool(ExecutorService executor, in ThreadPool() method in ThreadPool
102 final static ThreadPool defaultThreadPool = createDefault();
106 static ThreadPool getDefault() { in getDefault()
111 static ThreadPool createDefault() { in createDefault()
122 return new ThreadPool(executor, false, initialSize); in createDefault()
126 static ThreadPool create(int nThreads, ThreadFactory factory) { in create()
130 return new ThreadPool(executor, true, nThreads); in create()
134 public static ThreadPool wrap(ExecutorService executor, int initialSize) { in wrap()
153 return new ThreadPool(executor, false, initialSize); in wrap()
DLinuxAsynchronousChannelProvider.java43 defaultPort = new EPollPort(this, ThreadPool.getDefault()).start(); in defaultEventPort()
57 return new EPollPort(this, ThreadPool.create(nThreads, factory)).start(); in openAsynchronousChannelGroup()
64 return new EPollPort(this, ThreadPool.wrap(executor, initialSize)).start(); in openAsynchronousChannelGroup()
DAsynchronousChannelGroupImpl.java55 private final ThreadPool pool;
73 ThreadPool pool) in AsynchronousChannelGroupImpl()
87 Executors.newScheduledThreadPool(1, ThreadPool.defaultThreadFactory()); in AsynchronousChannelGroupImpl()
123 ThreadPool.defaultThreadFactory().newThread(task).start();
DPort.java57 Port(AsynchronousChannelProvider provider, ThreadPool pool) { in Port()
DSimpleAsynchronousFileChannelImpl.java47 ThreadPool.createDefault().executor();
68 ThreadPool pool) in open()
DEPollPort.java83 EPollPort(AsynchronousChannelProvider provider, ThreadPool pool) in EPollPort()
/libcore/luni/src/test/java/tests/support/
DThreadPool.java22 public class ThreadPool extends ThreadGroup { class
32 public ThreadPool(int numThreads) { in ThreadPool() method in ThreadPool
93 super(ThreadPool.this, "PooledThread-" + (threadID++)); in PooledThread()
/libcore/luni/src/test/java/tests/java/sql/
DStressTest.java32 import tests.support.ThreadPool;
126 ThreadPool threadPool = new ThreadPool(numTasks); in testManyConnectionsUsingManyThreads()
199 ThreadPool threadPool = new ThreadPool(numConnections); in testInsertOfManyRowsUsingManyThreads()
DMultiThreadAccessTest.java33 import tests.support.ThreadPool;
45 private ThreadPool threadPool;
57 threadPool = new ThreadPool(numThreads); in setUp()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixChannelFactory.java34 import sun.nio.ch.ThreadPool;
157 ThreadPool pool) in newAsynchronousFileChannel()
DUnixFileSystemProvider.java39 import sun.nio.ch.ThreadPool;
191 ThreadPool pool = (executor == null) ? null : ThreadPool.wrap(executor, 0); in newAsynchronousFileChannel()
/libcore/
Dopenjdk_java_files.bp1582 "ojluni/src/main/java/sun/nio/ch/ThreadPool.java",