More changes for Galois
[IRC.git] / Robust / src / ClassLibrary / MGC / Thread.java
index 917d3475bc3cc13f57fbfa22fab00071d46b42cb..75c463f751a5d4a50ecd1e6157fcebae7645eaea 100644 (file)
@@ -1,11 +1,20 @@
 public class Thread implements Runnable {
+  static long id = 0;
   private boolean finished;
   Runnable target;
   private boolean daemon;
+  private long threadId;
   
   public Thread(){
     finished = false;
     target = null;
+    daemon = false;
+    threadId = Thread.id++;
+  }
+  
+  public long getId()
+  {
+    return threadId;
   }
   
   public Thread(Runnable r) {