From f3644572ea68aacf96ce5a1a9b9e5ce2cf617d95 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 19 May 2008 00:46:35 +0000 Subject: local process time goes on if process is crashed. simulates BIOS time. --- sources/core/VSTaskManager.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sources/core/VSTaskManager.java') diff --git a/sources/core/VSTaskManager.java b/sources/core/VSTaskManager.java index 6683e71..7e24cf3 100644 --- a/sources/core/VSTaskManager.java +++ b/sources/core/VSTaskManager.java @@ -16,12 +16,13 @@ public class VSTaskManager { public VSTaskManager(VSPrefs prefs) { this.prefs = prefs; - Comparator comparator = createComparator(); - this.tasks = new PriorityQueue(100, comparator); - this.globalTasks = new PriorityQueue(100, comparator); + //Comparator comparator = createComparator(); + this.tasks = new PriorityQueue();//100, comparator); + this.globalTasks = new PriorityQueue();//(100, comparator); this.fullfilledProgrammedTasks = new LinkedList(); } + /* private Comparator createComparator() { return new Comparator() { public int compare(VSTask a, VSTask b) { @@ -35,6 +36,7 @@ public class VSTaskManager { } }; } + */ public synchronized void runTasks(final long step, final long offset, final long lastGlobalTime) { VSTask task = null; -- cgit v1.2.3