105 |
int priority; |
int priority; |
106 |
|
|
107 |
/** The context classloader for this Thread. */ |
/** The context classloader for this Thread. */ |
108 |
private ClassLoader contextClassLoader = ClassLoader.getSystemClassLoader(); |
private ClassLoader contextClassLoader; |
109 |
|
|
110 |
/** The next thread number to use. */ |
/** The next thread number to use. */ |
111 |
private static int numAnonymousThreadsCreated = 0; |
private static int numAnonymousThreadsCreated = 0; |
274 |
this.toRun = toRun; |
this.toRun = toRun; |
275 |
if (current == null) |
if (current == null) |
276 |
{ |
{ |
277 |
priority = NORM_PRIORITY; |
priority = NORM_PRIORITY; |
278 |
daemon = false; |
daemon = false; |
279 |
|
contextClassLoader = ClassLoader.getSystemClassLoader(); |
280 |
} |
} |
281 |
else |
else |
282 |
{ |
{ |
283 |
priority = current.priority; |
priority = current.priority; |
284 |
daemon = current.daemon; |
daemon = current.daemon; |
285 |
|
contextClassLoader = current.contextClassLoader; |
286 |
} |
} |
287 |
nativeInit(size); |
nativeInit(size); |
288 |
|
|