diff options
Diffstat (limited to 'sources/core/VSTaskManager.java')
| -rw-r--r-- | sources/core/VSTaskManager.java | 8 |
1 files changed, 5 insertions, 3 deletions
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<VSTask> comparator = createComparator(); - this.tasks = new PriorityQueue<VSTask>(100, comparator); - this.globalTasks = new PriorityQueue<VSTask>(100, comparator); + //Comparator<VSTask> comparator = createComparator(); + this.tasks = new PriorityQueue<VSTask>();//100, comparator); + this.globalTasks = new PriorityQueue<VSTask>();//(100, comparator); this.fullfilledProgrammedTasks = new LinkedList<VSTask>(); } + /* private Comparator<VSTask> createComparator() { return new Comparator<VSTask>() { 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; |
