MCPcopy Index your code
hub / github.com/clojure/clojure / createThreadFactory

Method createThreadFactory

src/jvm/clojure/lang/Agent.java:58–66  ·  view source on GitHub ↗
(final String format, final AtomicLong threadPoolCounter)

Source from the content-addressed store, hash-verified

56final static ThreadLocal<IPersistentVector> nested = new ThreadLocal<IPersistentVector>();
57
58private static ThreadFactory createThreadFactory(final String format, final AtomicLong threadPoolCounter) {
59 return new ThreadFactory() {
60 public Thread newThread(Runnable runnable) {
61 Thread thread = new Thread(runnable);
62 thread.setName(String.format(format, threadPoolCounter.getAndIncrement()));
63 return thread;
64 }
65 };
66}
67
68public static void shutdown(){
69 soloExecutor.shutdown();

Callers 1

AgentClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected