MCPcopy Create free account
hub / github.com/ReadyTalk/avian / Thread

Method Thread

classpath/java/lang/Thread.java:40–59  ·  view source on GitHub ↗
(ThreadGroup group, Runnable task, String name, long stackSize)

Source from the content-addressed store, hash-verified

38 public static final int MAX_PRIORITY = 10;
39
40 public Thread(ThreadGroup group, Runnable task, String name, long stackSize)
41 {
42 this.group = (group == null ? Thread.currentThread().group : group);
43 this.task = task;
44 this.name = name;
45
46 Thread current = currentThread();
47
48 Map<ThreadLocal, Object> map = current.locals;
49 if (map != null) {
50 for (Map.Entry<ThreadLocal, Object> e: map.entrySet()) {
51 if (e.getKey() instanceof InheritableThreadLocal) {
52 InheritableThreadLocal itl = (InheritableThreadLocal) e.getKey();
53 locals().put(itl, itl.childValue(e.getValue()));
54 }
55 }
56 }
57
58 classLoader = current.classLoader;
59 }
60
61 public Thread(ThreadGroup group, Runnable task, String name) {
62 this(group, task, name, 0);

Callers

nothing calls this directly

Calls 7

currentThreadMethod · 0.95
localsMethod · 0.95
childValueMethod · 0.95
entrySetMethod · 0.65
getKeyMethod · 0.65
putMethod · 0.65
getValueMethod · 0.65

Tested by

no test coverage detected