From: bdemsky Date: Thu, 8 Apr 2010 00:45:09 +0000 (+0000) Subject: new getstatus method X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=069461ba5cf3b97480b5833f8e734fd5e85c607e;p=IRC.git new getstatus method --- diff --git a/Robust/src/ClassLibrary/JavaDSM/Thread.java b/Robust/src/ClassLibrary/JavaDSM/Thread.java index c1902293..def703fc 100644 --- a/Robust/src/ClassLibrary/JavaDSM/Thread.java +++ b/Robust/src/ClassLibrary/JavaDSM/Thread.java @@ -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; + } }