(ThreadGroup group, Runnable task, String name, long stackSize)
| 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); |
nothing calls this directly
no test coverage detected