new getstatus method
[IRC.git] / Robust / src / ClassLibrary / JavaDSM / Thread.java
index c19022932c462af68f226d450a39bdd98bdb0f5b..def703fc0199b444a6b1da5cbb38da3e44f907e8 100644 (file)
@@ -40,6 +40,16 @@ public class Thread {
       return -1;
 
   }
+
+  public int getStatus() {
+    if(nativeGetStatus(mid)==1)
+      return 1;
+    //TODO:check if this is safe to add only for the DSM without the recovery version
+    if(nativeGetStatus(mid)==0)
+      return 1;
+    else
+      return -1;
+  }
 }