From: jihoonl Date: Sat, 3 Oct 2009 07:49:30 +0000 (+0000) Subject: removed unnecessary code X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=95fbad125a56579d18e6a8c71963c2d1dcab9953;p=IRC.git removed unnecessary code --- diff --git a/Robust/src/ClassLibrary/JavaDSM/Work.java b/Robust/src/ClassLibrary/JavaDSM/Work.java index 9b9c164a..3a1b59ec 100644 --- a/Robust/src/ClassLibrary/JavaDSM/Work.java +++ b/Robust/src/ClassLibrary/JavaDSM/Work.java @@ -17,14 +17,15 @@ public class Work extends Thread { workMID = MY_MID; } + System.out.println("Thread " + workMID + " has started"); Task localTask; int chk; int result; int i,j; - int cc; boolean isEmpty; while(true) { + atomic { isEmpty = tasks.isTodoListEmpty(); // flag > !keep assigning @@ -42,7 +43,6 @@ public class Work extends Thread { tasks.setWork(currentWorkList[workMID]); localTask = tasks; } - /* compute */ localTask.execution(); @@ -50,7 +50,6 @@ public class Work extends Thread { /* push into done list */ tasks.done(currentWorkList[workMID]); currentWorkList[workMID] = null; - cc = ((Drinker)tasks).ownTotal; } } else if(chk == -1) { // finished all work