more classpath classes

This commit is contained in:
Joel Dice
2007-07-21 16:36:51 -06:00
parent fd770fd884
commit 90d60b3459
13 changed files with 269 additions and 18 deletions

View File

@ -12,7 +12,20 @@ public class Thread implements Runnable {
this.task = task;
}
public synchronized native void start();
public synchronized void start() {
Map<ThreadLocal, Object> map = currentThread().locals;
if (map != null) {
for (Map.Entry<ThreadLocal, Object> e: map.entrySet()) {
if (e.getKey() instanceof InheritableThreadLocal) {
locals().put(e.getKey(), e.getValue());
}
}
}
doStart();
}
private native void doStart();
public void run() {
if (task != null) {