/libcore/luni/src/main/java/java/util/concurrent/ |
D | Executors.java | 128 public static ExecutorService newFixedThreadPool(int nThreads, ThreadFactory threadFactory) { in newFixedThreadPool() argument 132 threadFactory); in newFixedThreadPool() 169 public static ExecutorService newSingleThreadExecutor(ThreadFactory threadFactory) { in newSingleThreadExecutor() argument 174 threadFactory)); in newSingleThreadExecutor() 208 public static ExecutorService newCachedThreadPool(ThreadFactory threadFactory) { in newCachedThreadPool() argument 212 threadFactory); in newCachedThreadPool() 249 …lic static ScheduledExecutorService newSingleThreadScheduledExecutor(ThreadFactory threadFactory) { in newSingleThreadScheduledExecutor() argument 251 (new ScheduledThreadPoolExecutor(1, threadFactory)); in newSingleThreadScheduledExecutor() 278 int corePoolSize, ThreadFactory threadFactory) { in newScheduledThreadPool() argument 279 return new ScheduledThreadPoolExecutor(corePoolSize, threadFactory); in newScheduledThreadPool()
|
D | ThreadPoolExecutor.java | 498 private volatile ThreadFactory threadFactory; field in ThreadPoolExecutor 1220 ThreadFactory threadFactory) { in ThreadPoolExecutor() argument 1222 threadFactory, defaultHandler); in ThreadPoolExecutor() 1292 ThreadFactory threadFactory, in ThreadPoolExecutor() argument 1299 if (workQueue == null || threadFactory == null || handler == null) in ThreadPoolExecutor() 1305 this.threadFactory = threadFactory; in ThreadPoolExecutor() 1475 public void setThreadFactory(ThreadFactory threadFactory) { in setThreadFactory() argument 1476 if (threadFactory == null) in setThreadFactory() 1478 this.threadFactory = threadFactory; in setThreadFactory() 1488 return threadFactory; in getThreadFactory()
|
D | ScheduledThreadPoolExecutor.java | 442 ThreadFactory threadFactory) { in ScheduledThreadPoolExecutor() argument 445 new DelayedWorkQueue(), threadFactory); in ScheduledThreadPoolExecutor() 481 ThreadFactory threadFactory, in ScheduledThreadPoolExecutor() argument 485 new DelayedWorkQueue(), threadFactory, handler); in ScheduledThreadPoolExecutor()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | ThreadPool.java | 101 ThreadFactory threadFactory = getDefaultThreadPoolThreadFactory(); in createDefault() local 102 if (threadFactory == null) in createDefault() 103 threadFactory = defaultThreadFactory; in createDefault() 109 threadFactory); in createDefault()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ScheduledExecutorSubclassTest.java | 96 CustomExecutor(int corePoolSize, ThreadFactory threadFactory) { in CustomExecutor() argument 97 super(corePoolSize, threadFactory); in CustomExecutor() 99 CustomExecutor(int corePoolSize, ThreadFactory threadFactory, in CustomExecutor() argument 101 super(corePoolSize, threadFactory, handler); in CustomExecutor() 538 final ThreadFactory threadFactory = new SimpleThreadFactory(); in testGetThreadFactory() local 539 final CustomExecutor p = new CustomExecutor(1, threadFactory); in testGetThreadFactory() 541 assertSame(threadFactory, p.getThreadFactory()); in testGetThreadFactory() 549 final ThreadFactory threadFactory = new SimpleThreadFactory(); in testSetThreadFactory() local 552 p.setThreadFactory(threadFactory); in testSetThreadFactory() 553 assertSame(threadFactory, p.getThreadFactory()); in testSetThreadFactory()
|
D | ThreadPoolExecutorSubclassTest.java | 173 ThreadFactory threadFactory) { in CustomTPE() argument 175 threadFactory); in CustomTPE() 192 ThreadFactory threadFactory, in CustomTPE() argument 195 workQueue, threadFactory, handler); in CustomTPE() 387 final ThreadFactory threadFactory = new SimpleThreadFactory(); in testGetThreadFactory() local 392 threadFactory, in testGetThreadFactory() 395 assertSame(threadFactory, p.getThreadFactory()); in testGetThreadFactory() 408 ThreadFactory threadFactory = new SimpleThreadFactory(); in testSetThreadFactory() local 409 p.setThreadFactory(threadFactory); in testSetThreadFactory() 410 assertSame(threadFactory, p.getThreadFactory()); in testSetThreadFactory()
|
D | ScheduledExecutorTest.java | 482 final ThreadFactory threadFactory = new SimpleThreadFactory(); in testGetThreadFactory() local 484 new ScheduledThreadPoolExecutor(1, threadFactory); in testGetThreadFactory() 486 assertSame(threadFactory, p.getThreadFactory()); in testGetThreadFactory() 494 ThreadFactory threadFactory = new SimpleThreadFactory(); in testSetThreadFactory() local 497 p.setThreadFactory(threadFactory); in testSetThreadFactory() 498 assertSame(threadFactory, p.getThreadFactory()); in testSetThreadFactory()
|
D | ThreadPoolExecutorTest.java | 240 ThreadFactory threadFactory = new SimpleThreadFactory(); in testGetThreadFactory() local 245 threadFactory, in testGetThreadFactory() 248 assertSame(threadFactory, p.getThreadFactory()); in testGetThreadFactory() 261 ThreadFactory threadFactory = new SimpleThreadFactory(); in testSetThreadFactory() local 262 p.setThreadFactory(threadFactory); in testSetThreadFactory() 263 assertSame(threadFactory, p.getThreadFactory()); in testSetThreadFactory()
|