From 069461ba5cf3b97480b5833f8e734fd5e85c607e Mon Sep 17 00:00:00 2001 From: bdemsky Date: Thu, 8 Apr 2010 00:45:09 +0000 Subject: [PATCH] new getstatus method --- Robust/src/ClassLibrary/JavaDSM/Thread.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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; + } } -- 2.34.1