projects
/
IRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
224f130
)
new getstatus method
author
bdemsky
<bdemsky>
Thu, 8 Apr 2010 00:45:09 +0000
(
00:45
+0000)
committer
bdemsky
<bdemsky>
Thu, 8 Apr 2010 00:45:09 +0000
(
00:45
+0000)
Robust/src/ClassLibrary/JavaDSM/Thread.java
patch
|
blob
|
history
diff --git
a/Robust/src/ClassLibrary/JavaDSM/Thread.java
b/Robust/src/ClassLibrary/JavaDSM/Thread.java
index c19022932c462af68f226d450a39bdd98bdb0f5b..def703fc0199b444a6b1da5cbb38da3e44f907e8 100644
(file)
--- 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;
+ }
}