From 5eb35a6da1ba939878c0351f35b4019fd406ffdd Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 19 May 2008 09:34:17 +0000 Subject: TaskManager bugfix. --- sources/core/VSTaskManager.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'sources/core/VSTaskManager.java') diff --git a/sources/core/VSTaskManager.java b/sources/core/VSTaskManager.java index 1857865..e5adfac 100644 --- a/sources/core/VSTaskManager.java +++ b/sources/core/VSTaskManager.java @@ -22,7 +22,7 @@ public class VSTaskManager { this.fullfilledProgrammedTasks = new LinkedList(); } - /* + /* private Comparator createComparator() { return new Comparator() { public int compare(VSTask a, VSTask b) { @@ -36,7 +36,7 @@ public class VSTaskManager { } }; } - */ + */ public synchronized void runTasks(final long step, final long offset, final long lastGlobalTime) { VSTask task = null; @@ -184,10 +184,10 @@ public class VSTaskManager { } private void insert(VSTask task) { - if (task.timeOver()) - fullfilledProgrammedTasks.addLast(task); + if (task.timeOver()) + fullfilledProgrammedTasks.addLast(task); - else if (task.isGlobalTimed()) + else if (task.isGlobalTimed()) globalTasks.add(task); else @@ -216,7 +216,7 @@ public class VSTaskManager { return false; } - /* + /* public synchronized LinkedList getProtocolTasks(VSProtocol protocol) { LinkedList protocolTasks = new LinkedList(); @@ -278,7 +278,7 @@ public class VSTaskManager { insert(task); } } -*/ + */ public synchronized VSPriorityQueue getLocalTasks() { VSPriorityQueue processTasks = new VSPriorityQueue(); -- cgit v1.2.3