progress on thread support

This commit is contained in:
Joel Dice
2007-07-07 12:09:16 -06:00
parent 3bd267b47a
commit e5bea7a455
10 changed files with 521 additions and 143 deletions

View File

@ -2,12 +2,13 @@ package java.lang;
public class Thread implements Runnable {
private final Runnable task;
private long peer;
public Thread(Runnable task) {
this.task = task;
}
public native void start();
public synchronized native void start();
public void run() {
if (task != null) {